note 86232 added to reserved.variables.server

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.