Hi,
I need to figure out how to determine the absolute path to the directory containing the currently executing script:
will get me the path including the file name, but I want it without. Like so:PHP Code:<?php
$absolute = $_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'];
?>
and not like so:Code:www.example.com/path/to/
If you have the answer, I'd love to hear itCode:www.example.com/path/to/file.php![]()



Reply With Quote

Bookmarks