Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
echo 'basename(dirname(__FILE__)) = ' . basename(dirname(__FILE__)) . "<br/>";
echo '$_SERVER["PHP_SELF"] = ' . $_SERVER["PHP_SELF"] . "<br/>";
echo '$_SERVER["DOCUMENT_ROOT"] = ' . $_SERVER["DOCUMENT_ROOT"] . "<br/>";
echo 'dirname(__FILE__) = ' . dirname(__FILE__) . "<br/>";
echo 'getcwd() = ' . getcwd() . "<br/>";
echo '__FILE__ = ' . __FILE__ . "<br/>";
phpinfo();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment