antisback Posted December 26, 2006 Share Posted December 26, 2006 So i want my script to run on a timer, so that it runs itself without any user input every ten minutes, how would i go about doing this?Sorry if this has been answered before, but i need help on this one :)Thanks in advance-Ant Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/ Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 sorry, i dont quite understand, you want a timer ??? :-\ Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147917 Share on other sites More sharing options...
antisback Posted December 26, 2006 Author Share Posted December 26, 2006 i want a script to run on a timer, every 10 mins, without any user input :|I'm pretty new to php tbh Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147918 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 i know about javascript:<body onload="timer=setTimeout('move()',600000000)"> <script language="JavaScript"> var time = null function move() { window.location = 'destiny.com'} </script> but i am not sure about php, is this the type of thing you want? Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147921 Share on other sites More sharing options...
antisback Posted December 26, 2006 Author Share Posted December 26, 2006 would that run without user input, that would require me to have the page loaded? ??? Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147922 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 what do you mean by user input? i only know that this script runs automatically Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147923 Share on other sites More sharing options...
kenrbnsn Posted December 26, 2006 Share Posted December 26, 2006 If you're running on a Unix/Linux host you want to run a CRON job. Check with your hosting provider.Ken Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147925 Share on other sites More sharing options...
antisback Posted December 26, 2006 Author Share Posted December 26, 2006 Thanks ken :)Also thank you v much for trying ted Link to comment https://forums.phpfreaks.com/topic/31876-self-running-script/#findComment-147926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.