Re: file() ignores PHP tags

From: Date: Mon, 24 Sep 2007 01:08:28 +0000
Subject: Re: file() ignores PHP tags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262400@lists.php.net to get a copy of this message
magoo wrote:
Hi NG! I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag (<?php) in my output, but the ending tags. Is there anything I can to to get all of it? 2. How can I stop the browser to render HTML output, in order to get plain ascii?
$string = file_get_contents($filename_here); echo htmlspecialchars($string, ENT_QUOTES); -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#262400) next »