Jump to content

Archived

This topic is now archived and is closed to further replies.

scottybwoy

Quick question > Php Processing *SOLVED*

Recommended Posts

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

[code]
<?php
  require_once "home.conf.php";

  require_once $INTRANET_USER_CLASS;
  require_once $DEBUGGER_CLASS;
?>
[/code]

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 ;)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.