note 20875 added to function.realpath
| From: | kyle at kyletyoung dot com | Date: | Fri, 19 Apr 2002 22:31:28 +0000 |
| Subject: | note 20875 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29586@lists.php.net to get a copy of this message | ||
Some of you may have been trying to use the real_path() function to find out the real directory your
working under, ie. for a .htaccess file.
Just do this:
<?
echo system("pwd");
?>
I dont think that will work for Windows but maybe try a windows command in the system function.
--
http://www.php.net/manual/en/function.realpath.php
http://master.php.net/manage/user-notes.php?action=edit+20875
http://master.php.net/manage/user-notes.php?action=delete+20875
http://master.php.net/manage/user-notes.php?action=reject+20875