Re: HTML source of a php outputted document?

From: Date: Mon, 10 Jul 2000 13:26:20 +0000
Subject: Re: HTML source of a php outputted document?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5715@lists.php.net to get a copy of this message
what about fopening the URL and using htmlspecialchars() on the result? Pavel ----- Original Message ----- From: "Niklas Brunlid" <niklasb@axis.com> To: "PHP-General" <php-general@lists.php.net> Sent: Monday, July 10, 2000 3:21 PM Subject: [PHP] HTML source of a php outputted document? > This is a real newbie HTML question, but I just wanted to know before I > start to double my work by writing the same thing in two files all the > time: > > I want to display some sample HTML source of a web page that's php3 > generated, i.e. not show the php3 source but the html source it > generates. The tricky part is that I want to do this on a web page. > > A horrible solution would be to call a function for each < and >, and if > $source is defined output &lt; and &gt; in their place... won't make the > code any prettier though. ;) > > Are there any more elegant solutions? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#5715) next »