getting root of server
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
getting root of server
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/
Look into $_SERVER & what values it provides: http://my.php.net/manual/en/reserved.variables.php
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.