From 354ed062128d0a60d571d7b755c1feba3a68d0a9 Mon Sep 17 00:00:00 2001 From: Kenneth Schwartz Date: Tue, 17 Feb 2004 21:01:16 +0000 Subject: [PATCH] bug #14165 added note about including remote files git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@151648 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 09874a47ec..bc25c2a665 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1404,11 +1404,16 @@ if ($condition) { - Handling Returns: It is possible to execute a return - statement inside an included file in order to terminate processing in that - file and return to the script which called it. Also, it's possible to return - values from included files. You can take the value of the include call as - you would a normal function. + Handling Returns: It is possible to execute a return + statement inside an included file in order to terminate processing in that + file and return to the script which called it. Also, it's possible to return + values from included files. You can take the value of the include call as + you would a normal function. This is not, however, possible when including + remote files unless the output of the remote file has + valid PHP start + and end tags (as with any local file). You can declare the needed + variables within those tags and they will be introduced at whichever point + the file was included.