the problem is when i use __ DIR __ in my php script, it prints __DIR__ exactly.
so what is the cause of this problem?
and how can i solve it?
or at least is there any alternative way to do that? i mean getting the real directory on the web server.
assuming that the server running on windows OS, if that could helps anyway.
thank you
you can use
dirname(__FILE__)instead of__DIR__