note 50282 added to function.dirname
| From: | Jaxolotl at osu1 dot php dot net | Date: | Wed, 23 Feb 2005 17:34:04 +0000 |
| Subject: | note 50282 added to function.dirname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85445@lists.php.net to get a copy of this message | ||
A simple way to have the complete URI of your actual "browsed" page for, as example, W3C
css-validation link, or any time you need it, is:
$my_uri = "http://" . $_SERVER['HTTP_HOST'] .
$HTTP_SERVER_VARS["SCRIPT_NAME"];
then
<?php echo ("$my_uri");?> as needed
----
Manual Page -- http://www.php.net/manual/en/function.dirname.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50282
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50282&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50282&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50282&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50282&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50282&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50282&report=yes
Search -- http://master.php.net/manage/user-notes.php