Billede-upload!
Jeg har dette script:<HTML>
<HEAD>
<TITLE>Upload</TITLE>
</HEAD>
<BODY>
<?
if(isset($UploadedFile))
{
$desti=\"images/\";// stien hvor filen skal gemmes
$desti.=$UploadedFile_name;
copy($UploadedFile,$desti);
unlink($UploadedFile);
print(\"Local File: $UploadedFile <BR>n\");
print(\"Name: $UploadedFile_name <BR>n\");
print(\"Size: $UploadedFile_size <BR>n\");
print(\"Type: $UploadedFile_type <BR>n\");
print(\"Saved as: $desti <BR>n\");
print(\"<HR>n\");
}
?>
<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"billede.php3\" METHOD=\"post\">20:14 04-10-00
<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"102400\">
<INPUT NAME=\"UploadedFile\" TYPE=\"file\">
<INPUT TYPE=\"submit\" VALUE=\"Upload\">
</FORM>
</BODY>
</HTML>
----
Det har køret fint i lang tid.
Men nu får hele tiden denne fejl:
Warning: Unable to create \'images/PIC00001.jpg\': Permission denied in /home/sites/site122/web/billede.php3 on line 11
Local File: /tmp/php11485aaa
nName: PIC00001.jpg
nSize: 62476
nType: image/pjpeg
nSaved as: images/PIC00001.jpg
n
--------------------------------------------------------------------------------
n