CookieRevised's reply to Restart script through code
The question is, lovefallen: why do you
exactly (and in
detail) want to stop a script? What is the reason behind it? (and if possible, post your entire code you already got to clarify this).
I ask this because in many cases you do not need to stop a script, or it is even not the required/correct thing todo to perform a certain action and there maybe might be better ways to do what you actually want to do...