Re: Print in html <?

From: Date: Thu, 22 Feb 2001 10:43:44 +0000
Subject: Re: Print in html <?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-41124@lists.php.net to get a copy of this message
On Wednesday 21 February 2001 20:11, Hrishi wrote: > On Thursday 22 February 2001 00:12, Brandon Orther wrote: > > Hello, > > > > I am trying to finish up a script with instructions on how to add my > > banner add script to someone's .phtml file. I need to print <? > > readfile(""); ?> > > use : > echo '<? yaddayadda ?>'; > > the single quotes ensure that php does not evaluate the contents of the > string constant => it is sent as is, the browser sees a tag that's unknown to him and simply ignores it. I.e. that doesn't work. Use the proper HTML entities for the brackets: &lt;? readfile (""); ?&gt; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God --------- and she was black.

« previous php.general (#41124) next »