0
What is the difference between $_SERVER['SCRIPT_FILENAME] and $_SERVER['SCRIPT_NAME]?
As I learnt $_SERVER['SCRIPT_FILENAME'] returns path of currently executing file and also $_SERVER['SCRIPT_NAME] also return path of current file. If there is a difference how they can be used?
3 Respostas
0
in my case:
$_SERVER['SCRIPT_FILENAME'] - returns full path of your script file, for example 'Z:/www/www.localhost/index.php' (Win) or '/home/www/index.php' (Debian)
$_SERVER['SCRIPT_NAME'] - returns only file name '/index.php'
0
Use _ (Underscore)
0
_