Re: short open tags not working even if enabled - lighttpd + fastcgi

From: Date: Tue, 27 Mar 2007 04:47:02 +0000
Subject: Re: short open tags not working even if enabled - lighttpd + fastcgi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251435@lists.php.net to get a copy of this message
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

« previous php.general (#251435) next »