Jump to content


quick question

  • Please log in to reply
2 replies to this topic

#1 sneskid

  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 04 August 2006 - 09:30 AM

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?


#2 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 04 August 2006 - 10:06 AM

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 reading

With PHP code
You 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.
Tell me the problem, I will try tell you the solution

#3 gerkintrigg

  • Members
  • PipPipPip
  • Magician
  • 828 posts
  • LocationBristol, UK
  • Age:37

Posted 04 August 2006 - 01:23 PM

or you add a "Break();" line into the code.
Neil Trigger - http://www.ghostlypublishing.co.uk - Ghostly Publishing - Children's Fantasy Books

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users