[Xitami] $PHP_SELF variable
Fabian Bess
xitami@lists.xitami.org
Mon, 12 Nov 2001 10:50:15 +0100
Fabian Bess wrote:
>>
>>
>> Ain't it PHP problem?
>>
> I don't think it's only PHP's fault because running the same PHP
> version with APACHE works fine _with_ $PHP_SELF
>
Seems like I'm the only one having this problem...
currently this is how I'm solving this problem:
$serv = $SERVER_SOFTWARE;
function OwnName() {
global $serv;
if($serv == "Xitami") return true;
}
and
<FORM action="<?php if(OwnName()) { echo $SCRIPT_NAME; } else { echo
$PHP_SELF; }; ?>" method="POST">
for some reason you can't test for $SERVER_SOFTWARE directly
maybe there's still another sollution out there?!
--
Fabian Bess (webmaster@tannenhof.de)
Webmaster Drogenhilfe Tannenhof Berlin e.V. 'http://www.tannenhof.de'