scottybwoy Posted September 13, 2006 Share Posted September 13, 2006 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 ;) Quote Link to comment Share on other sites More sharing options...
jpadie Posted September 13, 2006 Share Posted September 13, 2006 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. Quote Link to comment Share on other sites More sharing options...
scottybwoy Posted September 13, 2006 Author Share Posted September 13, 2006 Thanx for the quick reply Quote Link to comment 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.