PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've just been developing a simple web crawler today, but it went "off-piste" and started crawling the entire web (well it got as far as Google before I pressed 'stop' in my browser).
The thing is I'm worried that the script's still running even though I did press stop - can anyone clarify this?
The setup is this - the script basically starts at a certain URL, get's the links out of that page then follows them one by one getting more links etc. etc. - each time it finds a new link it print()'s it to the browser - so I sit there watching the links appear as the script runs. The core component of it is a recursive loop so I'm worried that it'll never stop...
Check the processes on the machine. If PHP is actively running (and likely eating the processor) chances are, it's still running. Get or use your operating system's favored process killing program to kill it if it's still running.
That's it - I can't - it's on a remote host (shared hosting) and the support guy said that he "couldn't stop PHP" and that I had to send a support email in... brilliant.