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.
You can put some php file into the root and get:
$rootPath = dirname(__FILE__)
inside it.