note 20033 added to function.realpath
| From: | sssolomon at hotmail dot com | Date: | Wed, 20 Mar 2002 04:34:00 +0000 |
| Subject: | note 20033 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27977@lists.php.net to get a copy of this message | ||
You are fairly stupid, real path gives you the path of a file name, not a website. for example:
<?php
$path=realpath("http://12.247.21.201/fedit.php");
echo $path;
?>
gives:
C:\apache\htdocs\http:\12.247.21.201\fedit.php
while:
<?php
$path=realpath("fedit.php");
echo $path;
?>
gives:
C:\apache\htdocs\fedit.php
The real path...
--
http://www.php.net/manual/en/function.realpath.php
http://master.php.net/manage/user-notes.php?action=edit+20033
http://master.php.net/manage/user-notes.php?action=delete+20033
http://master.php.net/manage/user-notes.php?action=reject+20033