Re: include opens source, but it shouldn't

From: Date: Thu, 15 Aug 2002 17:07:47 +0000
Subject: Re: include opens source, but it shouldn't
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112814@lists.php.net to get a copy of this message
What happens to a javascript, which only is able to hold code snippets in one lined vars (if u understand what i mean); But my Content, comming from my Database (HTML) is longer than a javascript line. And I put it there for in an php variable? It will be the same, or? Schura (O;? ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "'Jay Blanchard'" <jay.blanchard@niicommunications.com>; <Har@ld-Mohring.de> Cc: <php-general@lists.php.net> Sent: Thursday, August 15, 2002 7:03 PM Subject: RE: [PHP] include opens source, but it shouldn't > [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 * > *********************************************************** > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#112814) next »