I use realpath('../'), it work fine but the result is D:wampwww ( real path is D://wamp/www ). Anybody can tell me how to get realpath by the right way? Thanks you verry much.
It work fine. Thanks you :)
leduchuy89vn
2009-09-15 15:06:21
Then accept his answer by hitting that check mark. That's what we do here.
ryeguy
2009-09-15 15:06:42
Note that this probably won't work in a CLI context -- which may or may not be an issue, depending on your project.
Frank Farmer
2009-09-15 16:28:33
A:
You can put some php file into the root and get $rootPath = dirname(FILE) inside it.
FractalizeR
2009-09-16 08:27:07