sneskid Posted August 4, 2006 Share Posted August 4, 2006 Is there any guarantee in the order in which php scripts run.I know if I tell the script to sleep, or do a database query, other scripts will still run unbothered.Is each script technically a seperate process?Is it possible that the system may decide to put a script on pause for a bit and execute a section of another script before coming back to the first one?Thanks Link to comment https://forums.phpfreaks.com/topic/16527-quick-question/ Share on other sites More sharing options...
onlyican Posted August 4, 2006 Share Posted August 4, 2006 how websites work.You the user goes to www.example.com, that information is parsed to a server, the code is read and parsed back to the user to what you are readingWith PHP codeYou the user goes to www.example.com, that information is parsed to a server, if there is php, that is parsed to a php server, the code is translated to HTM, and parsed back to the first server, then all the information is parsed back to the user to show what you can see.This happens very quickly. THerefor a single script will not just stop loading without beeing told to, unless there is server issues. Link to comment https://forums.phpfreaks.com/topic/16527-quick-question/#findComment-69057 Share on other sites More sharing options...
gerkintrigg Posted August 4, 2006 Share Posted August 4, 2006 or you add a "Break();" line into the code. Link to comment https://forums.phpfreaks.com/topic/16527-quick-question/#findComment-69135 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.