RE: FN-FORUM: Problem with $PHP_SELF
date posted 24th January 2006 12:34
Ray McGinty wrote:
> However when I put the same site onto my testing server (the built in
> webserver on Mac OS X version 10.3.9), the variable comes up empty.
>
> I have also tried $_SERVER["php_self"] and basename($PHP_SELF).
$PHP_SELF is only set if register_globals is on, the universally correct
version is $_SERVER['PHP_SELF'], note the obligatory capitals.
Regards,
Dai