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
__FILE__ $_SERVER['PHP_SELF'] $_SERVER['SCRIPT_NAME'] $_SERVER['SCRIPT_FILENAME'] 的区别
时间: 2024-10-12 06:07:15