This is the script that i am running. I tried to upload a file. FYI, the temp path is set to /temp. I will then use the move_uploaded_file and copy to one of my folder. The directory of the server is like this: it contain tmp and public_html folder. So all my files will be kept in public_html and i wish to upload the files to one of the folder(pictures) in public_html....
if(! ($_FILES['upFile']['tmp_name']))
{
getInfo();
echo "File cannot be upload";
echo '<br>';
}
else
{
$uploadfile = basename($_FILES['upFile']['name']);
if( move_uploaded_file($_FILES['upFile']['tmp_name'], "/public_html/pictures/$uploadfile"))
{
getInfo();
echo "<br>Successful";
echo '<br>';
echo 'File Uploaded Successfully.';
}
else
{
getInfo();
echo "<br>Not an valid file";
}
}