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
精彩评论