Page 1 of 1

full path to a folder?

Posted: Mon Dec 13, 2004 8:04 pm
by C_Calav
can someone tell me how to find out the full path to a folder on a webserver?

/the/full/path/to/pics

where pics is my folder where the pics get uploaded too.

the reason is i changed the domain names, re uploaded everything and my pictures upload section does not work anymore.

put what i thought was the new full path but it was obvisouly wrong by the eroor message.

thanx :D

Posted: Mon Dec 13, 2004 8:11 pm
by ol4pr0

Code: Select all

echo $_SERVER['DOCUMENT_ROOT'];

Posted: Mon Dec 13, 2004 8:28 pm
by C_Calav
thanx ol4pr0,

where abouts do i put that echo?

Posted: Mon Dec 13, 2004 8:31 pm
by timvw

Code: Select all

echo realpath('.');

Posted: Mon Dec 13, 2004 8:44 pm
by rehfeld
also

Code: Select all

echo cwd();

Posted: Mon Dec 13, 2004 8:54 pm
by C_Calav
where do i put all these echos in my script?!

thanx guys!

Posted: Mon Dec 13, 2004 11:20 pm
by rehfeld
doesnt matter

Posted: Tue Dec 14, 2004 12:09 am
by C_Calav
got it working now thanx guys!

Posted: Tue Dec 14, 2004 12:54 am
by rehfeld
just put it in a blank file, load it, and see what the output is.