List Info

Thread: note 78480 added to reserved.variables




note 78480 added to reserved.variables
user name
2007-10-13 18:15:29
slight improvement to the example by 'andres at andresj dot
ath dot cx' for determining the path to the currently
script.

Previous version:

<?php
// If your script is included from another script:
$included_directory = substr(__FILE__, 0, strrpos(__FILE__,
'/'));
?>

Windows uses back-slash to indicate folders, so this didn't
work on localhost for me. All you need to do is convert any
back-slashes to forward-slashes. This should work on all
systems:

<?php
// If your script is included from another script:
$included_file = str_replace('\', '/', __FILE__);
$included_directory = substr($included_file, 0,
strrpos($included_file, '/'));
?>
----
Server IP: 194.145.210.4
Probable Submitter: 87.113.29.239
----
Manual Page -- h
ttp://www.php.net/manual/en/reserved.variables.php
Edit        -- https://master
.php.net/note/edit/78480
Del: integrated  -- h
ttps://master.php.net/note/delete/78480/integrated
Del: useless     -- http
s://master.php.net/note/delete/78480/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78480/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78480/spam
Del: non-english -- 
https://master.php.net/note/delete/78480/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78480/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78480
Reject      -- https://mast
er.php.net/note/reject/78480
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )