RE: [PHP] include opens source, but it shouldn't
| From: | Jay Blanchard | Date: | Thu, 15 Aug 2002 16:25:18 +0000 |
| Subject: | RE: [PHP] include opens source, but it shouldn't | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112800@lists.php.net to get a copy of this message | ||
[snip]
why does include always opens my included file
although it is defined as a variable
Example:
$file=include(/myfile/myfile.txt/);
shouldn't it only be opend by typing
echo $file;
[/snip]
The include() opens the file to place it in the variable, in other words
include means READ INTO. Therfore
$file=READ INTO THIS FILE(/myfile/myfile.txt/);
HTH!
Jay
Im really easy to get along with, once you people learn to worship me
***********************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* San Antonio Area PHP Developers Group *
* Interested? Contact jay.blanchard@niicommunications.com *
***********************************************************