Hi All,
Warning: File Upload Error - Unable to open temporary file [(null)] in Unknown on line 0
to fix Safe mode: edit php.ini upload_tmp_dir
the script
<?php
$my_max_file_size = "512000"; # in bytes
$move_to_dir = "/home/local/httpd/w/images";
if ( file_exists($uploadfile) )
{
// File is uploaded
copy($uploadfile, $move_to_dir . "/" . $uploadfile_name);
}
else
{
// No file uploaded, show the form
echo "<body>";
echo "<form enctype=\"multipart/form-data\" action=\"upload.php\" method=\"post\">";
echo "Upload this file: <input name=\"uploadfile\" type=\"file\">";
echo "<input type=\"submit\" value=\"Upload\">";
echo "</form>";
echo "</body>";
}
?>