note 20033 rejected from function.realpath by torben

From: Date: Wed, 20 Mar 2002 06:53:35 +0000
Subject: note 20033 rejected from function.realpath by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-27980@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...

« previous php.notes (#27980) next »