Created
October 12, 2015 13:00
-
-
Save Itachi261092/968d644d423548c79a37 to your computer and use it in GitHub Desktop.
[PHP] Get absolute web-server path / Получаем абсолютный путь к веб-серверу
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