__FILE__ $_SERVER['PHP_SELF'] $_SERVER['SCRIPT_NAME'] $_SERVER['SCRIPT_FILENAME'] 的区别

echo "<strong>";
echo "__FILE__:".__FILE__;echo "<br/>";
echo "PHP-SELF:".$_SERVER['PHP_SELF'];echo "<br/>";
echo "name:".$_SERVER['SCRIPT_NAME'];echo "<br/>";
echo "filename:".$_SERVER['SCRIPT_FILENAME'];
echo "</strong>";

 

__FILE__:D:\AppServ\www\test_file\13\index.php
PHP-SELF:/test_file/13/index.php
name:/test_file/13/index.php
filename:D:/AppServ/www/test_file/13/index.php

 

posted @ 2016-05-25 23:33  夜深人静123  阅读(239)  评论(0编辑  收藏  举报