How can i get the PHP magic constant __FILE__ work with Eclipse and PDT

后端 未结 5 1069
刺人心
刺人心 2021-02-20 04:23

Lately when i was debugging some PHP file with XDebug (under Eclipse on Ubuntu) i came across a strange behaviour:

print(__FILE__);

resulted in

5条回答
  •  余生分开走
    2021-02-20 04:59

    Not an answer, but you probably could use __DIR__ in php 5.3.
    UPD. Found that it often contains not what you expect it to.

提交回复
热议问题