[Xitami] PHP_SELF problem
TW
xitami@lists.xitami.org
Thu, 05 Sep 2002 18:34:42 +0200
--=====================_27842785==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Use a workaround if nothing else helps.
Put the following in some ever available header or config file:
function scriptname($buffer) {
$buff_array = explode("/", $buffer);
$i = count($buff_array);
$i--;
$scriptname = $buff_array[$i];
return $scriptname;
}
$php_self = scriptname($SCRIPT_NAME);
Regards,
tony
At 11:28 05.09.2002 -0400, you wrote:
>How to have that variable working properly in PHP 4.2.2.
>Is is working ok under Apache but I cannot find out how to get it working
>with Xitami. All the other such variables are ok when I execute phpinfo().
>I would need this one working and I tried a lot of changes in Xitami cfg
>files and the php.ini file as well.
>Thanks for your help
>JPSmith
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
--=====================_27842785==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
Use a workaround if nothing else helps.<br>
Put the following in some ever available header or config file:<br><br>
<font face="Courier New, Courier">function scriptname($buffer) {<br>
<x-tab> </x-tab>$buff_array
= explode("/", $buffer);<br>
<x-tab> </x-tab>$i =
count($buff_array);<br>
<x-tab> </x-tab>$i--;<br>
<x-tab> </x-tab>$scriptname
= $buff_array[$i];<br>
<x-tab> </x-tab>return
$scriptname;<br>
}<br><br>
$php_self = scriptname($SCRIPT_NAME);<br><br>
</font>Regards,<br>
tony<br><br>
At 11:28 05.09.2002 -0400, you wrote:<br>
<blockquote type=cite class=cite cite>How to have that variable working
properly in PHP 4.2.2.<br>
Is is working ok under Apache but I cannot find out how to get it
working<br>
with Xitami. All the other such variables are ok when I execute
phpinfo().<br>
I would need this one working and I tried a lot of changes in Xitami
cfg<br>
files and the php.ini file as well.<br>
Thanks for your help<br>
JPSmith<br><br>
--<br>
Xitami Users Mailing List -- For Xitami support<br>
To unsubscribe:
<a href="http://lists.xitami.org/mailman/listinfo/xitami" eudora="autourl">http://lists.xitami.org/mailman/listinfo/xitami</a>
</blockquote></html>
--=====================_27842785==_.ALT--