note 45020 added to function.realpath

From: Date: Mon, 23 Aug 2004 17:10:54 +0000
Subject: note 45020 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-75169@lists.php.net to get a copy of this message
URL to real path conversions should be simple. windows: echo realpath($_SERVER['SERVER_NAME'] . dirname($_SERVER['PHP_SELF'])."/"); unix: $ary=parse_url($_REQUEST['page']); realpath($_SERVER['DOCUMENT_ROOT'].$ary['path']); note: in the unix example, if the url doesn't have a filename ("http:example.com/") then you'll just get back the document_root without an ending "/". ---- Manual Page -- http://www.php.net/manual/en/function.realpath.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45020 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45020&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45020&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75169) next »