Ok, hi. I found an upload script on the internet and I'm having a couple small issues with it that Look simple to resolve. I just don't know how.
I keep getting the following error:
Warning: open_basedir restriction in effect.
File is in wrong directory in XXXXX/xxxxxx/XXXXXXXX/xxxxxxx
/xxx.x.x.xxx/upload/do-upload.php on line 10
File could not be uploaded
So, it must have something to do with the path.
Here's the code.
This file, do-upload.php is in the uploads dir.
<HTML><HEAD>
<TITLE>Uploading your file</TITLE>
</HEAD>
<BODY>
<P><FONT size="4">
<?php
$Path = "";
if(copy($_FILES['upload-file']['tmp_name'], $Path.'/'.$_FILES['upload-file']['name'])){
echo 'File Uploaded Successfully';
}else{
echo 'File could not be uploaded';
}
?>
</FONT></P>
</BODY>
</HTML>
like I said. Simple. What should path be?