开发者

what's the difference between SCRIPT_FILENAME and SCRIPT_NAME?

I tried to search for a difference but each time the vars a开发者_JAVA百科re identical, any ideas ?


http://www.php.net/manual/en/reserved.variables.server.php

Based on my understanding of this, they can be different if you're executing through the command line (CLI).


Check THIS Difference:

  • script_filename returns REAL DIR C:/xampp/htdocs/demo/index.php

  • file returns LOGIC JUNKTION D:\www\local\demo\cms\init.php

Hold that in mind when checking pathes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜