码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-05-25 23:53:18      阅读:389      评论:0      收藏:0      [点我收藏+]

标签:

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'] 的区别

标签:

原文地址:http://www.cnblogs.com/feng12345/p/5529023.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!