PHP_SELF not set

Nuno Magalhães nunomagalhaes at
Sat Sep 12 01:31:23 MSD 2009

> I can make cacti work by replacing all references to PHP_SELF with REQUEST_URI, but that's not a very maintainable solution.

I have PHP_SELF in some parts of some sites (none i can find right
now...), anyway, i tried a simple
<?php echo $_SERVER['PHP_SELF'] ?>
in the index.php of a site's docroot and it outputed /index.php, as
expected. What's your php and php-cgi version?

()  ascii-rubanda kampajno - kontraŭ html-a retpoŝto
/\  ascii ribbon campaign - against html e-mail

More information about the nginx mailing list