Hi all:
I've been trying to upload files to the server since last night, with no success!
The code is so simple it's embarassing, but it doesn't work!
Can you see where the problem is?
The formpage:
<form enctype="multipart/form-data" action="test.php" method="post" target="_blank">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Upload a file: <input type="file" name="userfile" class="ViewForm">
<input type="submit" value="Upload" class="AdminOptions">
</form>
The upload page (upload.php):
$upfile="/images/util/".$userfile_name;
echo $upfile;
echo "<hr>";
copy($userfile,$upfile);
if (!is_uploaded_file($userfile))
{
echo "No Upload !";
}
When I try this code, I get this error:
Warning: Unable to open '' for reading: No such file or directory in /usr/local/etc/httpd/htdocs/test.php on line 16
tx
Kamy