开发者

what's the difference between SCRIPT_FILENAME and SCRIPT_NAME?

开发者 https://www.devze.com 2022-12-31 04:10 出处:网络
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

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

精彩评论

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

关注公众号