note 32011 added to function.include

From: Date: Tue, 13 May 2003 01:35:54 +0000
Subject: note 32011 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-47901@lists.php.net to get a copy of this message
One of the previous posts mentioned that you cannot have a return value from a URI included file. This is not exactly true. What you can do is this: myfile.php <? include ('http://www.abc.com/second.php'); echo $var_I_want_to_see; ?> second.php <? echo '<?$var_I_want_to_see = "I can see it";?>'; ?> and the page will output I can see it -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+32011 http://master.php.net/manage/user-notes.php?action=delete+32011 http://master.php.net/manage/user-notes.php?action=reject+32011

« previous php.notes (#47901) next »