RE: path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Alain Roger [mailto:raf.news@xxxxxxxxx]
> Sent: Friday, November 10, 2006 1:48 PM
> To: PHP General List
> Subject:  path
> 
> Hi,
> 
> How can i get the path in which a PHP file is running ?
> 
> for example, user clicking on a link opened page  "action.php" file.
> this php file is located as "C:\webserver\mywebsite\php\test\action.php"
> 
> how can i get this path (C:\webserver\mywebsite\php\test\)?
> 
> thx.
> Al.

You should be able to do some string functions on
$_SERVER["SCRIPT_FILENAME"] to get it.

-B

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux