Jump to content

script run when browser stopped


maddogandnoriko

Recommended Posts

I have a fairly long script that is checking links. For the time being I am calling it in my browser and running it on my local server and echoing stuff back to see what is going on. When it is running and I click the stop button does the script stop executing also or does it continue to the end? On the same note if it does still run what happens if the script gets called again?

 

Thank you very much,

Todd

Link to comment
https://forums.phpfreaks.com/topic/148165-script-run-when-browser-stopped/
Share on other sites

PHP scripts run until they complete, even if you close your browser. However you can set the timeout of a script to stop executing, in which case you script would run until it hits the time limit you specified. Here is the function: set_time_limit  ( int $seconds  )

 

http://us3.php.net/set_time_limit

Is there a way to know if it is still running? More importantly is here a way to not have 100 running at a time? The pages vary in density with links, some may have none a large one has thousands. I am not worried if one or two overlap but I probably don't want a bunch running at the same time. Any suggestions?

 

Todd

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.