getting root of server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

getting root of server

Post 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/
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

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.
Post Reply