Created
July 25, 2017 05:24
-
-
Save WebiSamurai/c8e6c8f27b154742237602bc65347aea to your computer and use it in GitHub Desktop.
Absolute path to a folder or a file of a site on a hosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'Document root: '.$_SERVER['DOCUMENT_ROOT'].'<br>'; | |
echo 'Полный путь к скрипту и его имя: '.$_SERVER['SCRIPT_FILENAME'].'<br>'; | |
echo 'Имя скрипта: '.$_SERVER['SCRIPT_NAME']; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment