note 72416 added to function.realpath
| From: | MatthiasFostel at osu1 dot php dot net | Date: | Thu, 18 Jan 2007 02:52:37 +0000 |
| Subject: | note 72416 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121870@lists.php.net to get a copy of this message | ||
Popular htmlpath function found below with str_replace to fix issues with PHP on Windows.
function htmlpath($relative_path) {
$realpath=str_replace("\\", "/", realpath($relative_path));
$htmlpathURL=str_replace($_SERVER['DOCUMENT_ROOT'],'',$realpath);
return $htmlpathURL;
}
----
Server IP: 216.194.113.175
Probable Submitter: 65.217.233.225 (proxied: 10.0.1.10)
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- https://master.php.net/note/edit/72416
Del: integrated -- https://master.php.net/note/delete/72416/integrated
Del: useless -- https://master.php.net/note/delete/72416/useless
Del: bad code -- https://master.php.net/note/delete/72416/bad+code
Del: spam -- https://master.php.net/note/delete/72416/spam
Del: non-english -- https://master.php.net/note/delete/72416/non-english
Del: in docs -- https://master.php.net/note/delete/72416/in+docs
Del: other reasons-- https://master.php.net/note/delete/72416
Reject -- https://master.php.net/note/reject/72416
Search -- https://master.php.net/manage/user-notes.php