Matt Arnilo S. Baluyos (Mailing Lists) schrieb:
Hello everyone,

I have a working lighttpd + fastcgi + PHP + eaccelerator installation.
I have also enabled short tags on the /usr/local/lib/php.ini but I'm
having problems with PHP not escaping the short tags.

To better illustrate, my phpinfo() file can be accessed at
http://202.171.164.70/phpinfo.php - if you notice short_open_tag is
set to "On".

But when you access a PHP page at
http://202.171.164.70/admin/login.php and try to view the source, the
short open tag is not escaped.

Any reason why this isn't working as expected?

Regards,
Matt

Hi,

maybe it's because of the whitespace after the <?.

Try this:
<?=$_SERVER['PHP_SELF']; ?>

Best regards,
Tim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to