php3-list | 199901
Date: 01/26/99
- Next message: <email protected>: "[PHP3] Array declartation"
- Previous message: Eric Thelin: "[PHP3] Re: Procmail settings"
- Maybe in reply to: John Coggeshall: "[PHP3] Path"
- Next in thread: Mario Jorge Nunes Filipe: "Re: [PHP3] [Fwd: [PHP3] How to compile PDF support...]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Why not do:
<?
$f = $DOCUMENT_ROOT . $PHP_SELF;
echo "\$f = $f";
echo "\n<BR>";
$path = split("/", $f);
$count = count($path);
echo "\$count is $count";
echo "\n<BR>";
$count = $count - 1;
$file = $path[$count];
echo "The file name is $file";
?>
----- Original Message -----
From: John Coggeshall <someone <email protected>>
To: Jouni Ahto <jah <email protected>>
Cc: <mjnf <email protected>>; <php3 <email protected>>
Sent: Tuesday, January 26, 1999 9:52 AM
Subject: RE: [PHP3] Path
>> To my knowledge, there is no such command. If you just want to know which
>> program PHP would execute if you don't give a path (if you give it, then
>> you already know it...).
>
>What I am trying to figure out is if there are a few users
>
>/home/abc/al/
>/home/def/dan/
>/home/efg/eric/
>/home/hij/harry/
>
>and they are all running the same PHP Script I need to find out from which
>user's web page the script was ran. Is this possible? My goal is to write
>one mySQL-enabled script which will work for all of the users (with the PHP
>Script determining the right database depending on the user who ran it)
>
>John
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
>List administrator: zeev-list-admin <email protected>
>
>--godedilppbilhbplpplj
>Content-Disposition: inline; filename="php3.26964"
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: <email protected>: "[PHP3] Array declartation"
- Previous message: Eric Thelin: "[PHP3] Re: Procmail settings"
- Maybe in reply to: John Coggeshall: "[PHP3] Path"
- Next in thread: Mario Jorge Nunes Filipe: "Re: [PHP3] [Fwd: [PHP3] How to compile PDF support...]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

