Stop a php infinite loop-currently running

I have a seemingly simple problem.

I was looking for an error in a php function that wouldn’t return the result. So, quite stupidly, I put mail() functions in different areas of the function to see where it hangs up.

Read More

I narrowed it down to a while loop, and (quite stupidly again) decided to put the mail() function directly in the loop. Sure enough…that was the problem. The loop is infinite. I am now getting thousands upon thousands of emails and I can’t get it to stop.

I am running a wordpress site hosted on a Mac. It is running the apache web server that comes with Mountain Lion Server.app.

I tried stoping the web service…emails kept pouring in. I logged out of the user…still more emails. It only stopped when I turned off the server, only to start again when I restart.

I have tried this but there are no php processes running:
Stopping an infinite loop on a remote server PHP

Where do I go from here?

Related posts

Leave a Reply

1 comment