Re: path
| From: | Stut | Date: | Fri, 10 Nov 2006 19:09:46 +0000 |
| Subject: | Re: path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244480@lists.php.net to get a copy of this message | ||
Alain Roger wrote:
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\)?$dir = dirname(__FILE__); -Stut