Page 1 of 1

getting root of server

Posted: Mon Oct 15, 2007 11:52 am
by psychotomus
How can I get the root of my server? I need to look in a directory and get an image size. right now i am getting an error. my image path is domain.com but my file is domain.com/avatars/Aliens/1/80x80aliens0003_uxa+XHmR+251uLqhBj1nQ.jpg/

Posted: Mon Oct 15, 2007 12:56 pm
by pickle
Look into $_SERVER & what values it provides: http://my.php.net/manual/en/reserved.variables.php