note 64692 deleted from function.pathinfo by nlopess
| From: | nlopess@php.net | Date: | Tue, 25 Apr 2006 21:15:08 +0000 |
| Subject: | note 64692 deleted from function.pathinfo by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109697@lists.php.net to get a copy of this message | ||
Note Submitter:
----
imran: That's bad style. Better:
<?php
function getCurrentPath()
{
$address = 'http://' . $_SERVER['HTTP_HOST'] .
$_SERVER['PHP_SELF'];
return dirname($address);
}
?>