RE: [PHP] include opens source, but it shouldn't
| From: | Jay Blanchard | Date: | Thu, 15 Aug 2002 17:19:28 +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-112815@lists.php.net to get a copy of this message | ||
[snip]
Only on demand.
I'd like to define the variable without showing the file
$var=include();
do something else
echo $var;
[/snip]
Since the included file outputs headers you cannot do what it is you wish to
do AFAIK. When I do includes, and having looked at other's code I can say
that I am in good company, where HTML is involved and I need to use it again
I just call another include() function. I do this for navigation items,
footers, headers, and other odd items.
Jay
Im just working here till a good fast-food job opens up
***********************************************************
* 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 *
***********************************************************