Hi. I'm a newbie to PHP and unix.
I've written a PHP script that handles uploading of a file to a directory in my root dir.
move_uploaded_file ($superdat, "/usr/local/plesk/apache/vhosts/connectedart.com/httpdocs/nicoldan/$superdat_name")
The above example works fine.
But I do not want to put this string all places where I want to refererence my root dir which is:
"/usr/local/plesk/apache/vhosts/connectedart.com/httpdocs/"
Previously I used vbScript and
Server.MapPath("/") when I wanted my root dir.
Is there an equivalent function in PHP which gives me my root dir?
At first I thought that just use "/nicoldan/filename" would work.
Where nicoldan is a dir in my root dir.
But it did not work.
Tore