note 98372 added to function.realpath
| From: | JrgWagner at osu1 dot php dot net | Date: | Fri, 11 Jun 2010 07:35:26 +0000 |
| Subject: | note 98372 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170049@lists.php.net to get a copy of this message | ||
Please be aware that this function does NOT always strip a trailing slash!:
LINUX (tested with PHP 5.2.11):
---
realpath('.')
: string = "/myhttpdfolder"
realpath('./')
: string = "/myhttpdfolder"
realpath('fileadmin')
: string = "/myhttpdfolder/fileadmin"
realpath('fileadmin/')
: string = "/myhttpdfolder/fileadmin"
WINDOWS (tested with PHP 5.2.5):
---
realpath('.')
: string = "C:\\myhttpdfolder"
realpath('./')
: string = "C:\\myhttpdfolder\\"
realpath('fileadmin')
: string = "C:\\myhttpdfolder\\fileadmin"
realpath('fileadmin/')
: string = "C:\\myhttpdfolder\\fileadmin\\"
----
Server IP: 69.147.83.197
Probable Submitter: 84.165.216.97
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- https://master.php.net/note/edit/98372
Del: integrated -- https://master.php.net/note/delete/98372/integrated
Del: useless -- https://master.php.net/note/delete/98372/useless
Del: bad code -- https://master.php.net/note/delete/98372/bad+code
Del: spam -- https://master.php.net/note/delete/98372/spam
Del: non-english -- https://master.php.net/note/delete/98372/non-english
Del: in docs -- https://master.php.net/note/delete/98372/in+docs
Del: other reasons-- https://master.php.net/note/delete/98372
Reject -- https://master.php.net/note/reject/98372
Search -- https://master.php.net/manage/user-notes.php