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(""); ?> in
the html page that has instructions for the user. Anyway when I try to do
that it just runs as a script... does anyone know how I can get over this?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
bra...@webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general...@lists.php.net
For additional commands, e-mail: php-gene...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net
=> 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:
<? readfile (""); ?>
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God --------- and she was black.
<?
but if you are using PHP then echo '<?' will work perfectly.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
ma...@phpbeginner.com
www.phpbeginner.com
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
ma...@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Hrishi [mailto:hri...@mediaibc.com]
Sent: Thursday, February 22, 2001 4:12 AM
To: Brandon Orther; PHP User Group
Subject: Re: [PHP] Print in html <?
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
cheers,
hrishi
?>
<? readfile(""); ?>
<?
it should run. u could use
echo ("< readfile(\"\")>")
as well.
sascha
use :
echo '<? yaddayadda ?>';
the single quotes ensure that php does not evaluate the contents of the
string constant
cheers,
hrishi
--
No.
echo '<?' will ensure that the stuff is not parsed, but the browser will
not evaluate it (unknown tags are ignored). So < or echo '<' is
needed.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement. Get stoned.