note 86232 added to reserved.variables.server
| From: | werner at osu1 dot php dot net | Date: | Wed, 08 Oct 2008 19:44:23 +0000 |
| Subject: | note 86232 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145189@lists.php.net to get a copy of this message | ||
This is based on the post from 'emailfire at gmail dot com' (above)
If you only want to get the dir off the file you can use:
<?php
$this_dir = $_SERVER['SCRIPT_FILENAME'];
if (strpos($this_dir, basename($_SERVER['REQUEST_URI'])) !== false) $this_dir =
reset(explode(basename($_SERVER['REQUEST_URI']), $this_dir));
echo $this_dir;
?>
----
Server IP: 83.137.20.135
Probable Submitter: 86.91.200.211
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/86232
Del: integrated -- https://master.php.net/note/delete/86232/integrated
Del: useless -- https://master.php.net/note/delete/86232/useless
Del: bad code -- https://master.php.net/note/delete/86232/bad+code
Del: spam -- https://master.php.net/note/delete/86232/spam
Del: non-english -- https://master.php.net/note/delete/86232/non-english
Del: in docs -- https://master.php.net/note/delete/86232/in+docs
Del: other reasons-- https://master.php.net/note/delete/86232
Reject -- https://master.php.net/note/reject/86232
Search -- https://master.php.net/manage/user-notes.php