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 ;) Link to comment https://forums.phpfreaks.com/topic/20609-quick-question-php-processing-solved/ 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. Link to comment https://forums.phpfreaks.com/topic/20609-quick-question-php-processing-solved/#findComment-90991 Share on other sites More sharing options...
scottybwoy Posted September 13, 2006 Author Share Posted September 13, 2006 Thanx for the quick reply Link to comment https://forums.phpfreaks.com/topic/20609-quick-question-php-processing-solved/#findComment-90994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.