RE: [PHP] include opens source, but it shouldn't
| From: | Jay Blanchard | Date: | Thu, 15 Aug 2002 17:03:13 +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-112811@lists.php.net to get a copy of this message | ||
[snip]
[snip]
What is in the file? Do you have a print($file) or echo somewhere? Does the
included file have print() or echo() in it?
No, in the file is only html
[/snip]
There you go ... HTML will be parsed by the browser and displayed. So it is
doing exactly what it is supposed to do.
[/snip]
Are you wanting to place the file into the variable so that you can echo it
out later? That is an extra step that you do not need. Just place the
include() function where you want it to appear.
HTH!
Jay
***********************************************************
* 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 *
***********************************************************