Basically i want my PHP upload script to send the file to
/home/dir/public_html/uploads/
at the moment i put that in the code under variable $path in my code and it works fine. Say i now need to change the location of the site to
/home/dir2/html/uploads/
In order to do so at the moment i have to go and change the code. I'm sure there is a way to get the file root automatically similar to getting the http root so i can move the folder and it will still work fine. i just can't seem to find it.
Thanks,
nozom