BluMess Posted March 5, 2009 Share Posted March 5, 2009 Hi, I've made a script which was supposed to put certain values into a table, but I put the while loop in the wrong place and now it's running over and over and I can't stop it! I've tried deleting the script, and deleting the table but it still runs regardlessly. Is there any way to stop it? Please reply D: Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/ Share on other sites More sharing options...
Maq Posted March 5, 2009 Share Posted March 5, 2009 If you have access to a terminal on your server you can run: ps -ef (find the pid of the script) kill 1234 (whatever the id is) Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777538 Share on other sites More sharing options...
BluMess Posted March 5, 2009 Author Share Posted March 5, 2009 I can't say that means a lot to me, and no I have to go through my web hosting. I've tried asking them but they were useless. I'll link them to this page Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777540 Share on other sites More sharing options...
RussellReal Posted March 5, 2009 Share Posted March 5, 2009 dude, usually php will shut down after a while.. lol unless you set the timeout to 0 Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777543 Share on other sites More sharing options...
PFMaBiSmAd Posted March 5, 2009 Share Posted March 5, 2009 You should also be learning php, developing php code, and debugging php code on a local development system and not a live server. Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777558 Share on other sites More sharing options...
Mchl Posted March 5, 2009 Share Posted March 5, 2009 Ok... so it's running in a loop on a web host, and the guys from support don't care... why do you care? Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777591 Share on other sites More sharing options...
BluMess Posted March 5, 2009 Author Share Posted March 5, 2009 Thanks for your comments everyone. I didn't think it would time out - a few hours later and it's stopped working. What's wrong with testing things on a live server? I don't have a testing server, but I suppose it would be possible to set one up on my local PC if I knew how. Thanks again It's all OK now! Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777648 Share on other sites More sharing options...
Maq Posted March 5, 2009 Share Posted March 5, 2009 What's wrong with testing things on a live server? What do you mean? The whole purpose of a development server or, local server, is to test on it so you don't effect users. Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777650 Share on other sites More sharing options...
Mchl Posted March 5, 2009 Share Posted March 5, 2009 I don't have a testing server, but I suppose it would be possible to set one up on my local PC if I knew how. What OS you use? Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-777694 Share on other sites More sharing options...
BluMess Posted March 6, 2009 Author Share Posted March 6, 2009 I don't have a testing server, but I suppose it would be possible to set one up on my local PC if I knew how. What OS you use? Thanks for offering help, I've just googled it and got my own local server going Thank you! Hopefully I can avoid the problem happening again ^^ Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-778482 Share on other sites More sharing options...
Maq Posted March 6, 2009 Share Posted March 6, 2009 I don't have a testing server, but I suppose it would be possible to set one up on my local PC if I knew how. What OS you use? I think he was going to suggest WAMP or LAMP depending on your OS. Which I would suggest because it makes installing your local server 10x easier. Quote Link to comment https://forums.phpfreaks.com/topic/148124-php-script-wont-stop-help/#findComment-778484 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.