Hi. I'm a newbie to linux and PHP.
But have decided to move from VBscript to PHP and from Microsoft Access to mySQL.
My problem at my new host is this.
I'm trying to upload a file using:
move_uploaded_file ($superdat, "/usr/local/plesk/apache/vhosts/connectedart.com/httpdocs/nicoldan/$superdat_name")
this works great.. But not until I gave the full path name in to-path-string (second argument).
If I do this which I thought should work:
move_uploaded_file ($superdat, /nicoldan/superdat_name")
I get an error that directory does not exist.
my root dir is httpdocs and the nicoldan dir is a subdir to httpdocs....
So why dir not exist...
Why can't I just use /nicoldan ?
And if I can't ... how to I reference the root dir with a PHP function so I do not have to use the whole "/usr/local/plesk/apache/vhosts/connectedart.com/httpdocs/" which is a bad idea if I want to change host sometime...
Tore