Jump to content


Photo

Quick question > Php Processing *SOLVED*


  • Please log in to reply
2 replies to this topic

#1 scottybwoy

scottybwoy
  • Members
  • PipPipPip
  • Advanced Member
  • 532 posts
  • LocationUK

Posted 13 September 2006 - 12:47 PM

If you include_once in a script, does the parent script pause whilst reading the script in the included script like explained below?

<?php
   require_once "home.conf.php";

   require_once $INTRANET_USER_CLASS;
   require_once $DEBUGGER_CLASS;
?>

then say in home.conf.php it has more includes/requires

  require_once( $CLASSES . '/config.inc.php');

does it do the same?  Cheers in advance ;)

#2 jpadie

jpadie
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 September 2006 - 12:49 PM

yes.  as each file is "included" php first parses the script and then executes any code that is in the current scope. php is essentially a synchronous language so in general terms code is executed line by line.

#3 scottybwoy

scottybwoy
  • Members
  • PipPipPip
  • Advanced Member
  • 532 posts
  • LocationUK

Posted 13 September 2006 - 12:59 PM

Thanx for the quick reply




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users