BobSmith Posted August 1, 2008 Share Posted August 1, 2008 Could someone tell me or point me to where I can learn about execution-persistence (as opposed to data-persistence)? Simplified -- How long does the following "pseudo" script execute when a browser is pointed to it?: <?php while(TRUE){} ?> Forever? Until a certain timeout? A more practical example is a php script "running indefinitely" aggregating data from various URLs into a database at 12 midnight every day or some other timed interval. Thanks in advance, Bob Quote Link to comment https://forums.phpfreaks.com/topic/117756-solved-execution-persistence-or-whiletrue/ Share on other sites More sharing options...
DarkWater Posted August 1, 2008 Share Posted August 1, 2008 The default PHP timeout is 30 seconds. You wouldn't do it like that though, as it would waste a lot of resources just looping indefinitely. Use a cron job. Quote Link to comment https://forums.phpfreaks.com/topic/117756-solved-execution-persistence-or-whiletrue/#findComment-605677 Share on other sites More sharing options...
BobSmith Posted August 4, 2008 Author Share Posted August 4, 2008 Thanks for the reply ....... CRON Job -- Makes sense Quote Link to comment https://forums.phpfreaks.com/topic/117756-solved-execution-persistence-or-whiletrue/#findComment-607756 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.