以前オレオレ定数「__FILEDIR__」 - Do You PHP はてなでオレオレな定数を定義してみたりしたわけですが、本家のメーリングリストでオレオレじゃない定数「__DIR__」が議論されてます。 > Actually, just as __FILE__, __LINE__, __CLASS__ etc. dirname(__FILE__) > can be a parser constant. And if somebody produces a good name and a > patch for it, I see no reason to reject it. Does anybody? So here we are. The following patch[1] adds support for the constant __DIR__ which is dirname

