I have made the next code, the first time i run the script i'll get an error (I know, doesn't matter at this time).
When i have choose a file on my harddisk (I use Windows 95)
And click on the button upload i get the next error:
Warning: Unable to open 'C:\\files\\0013-0007-1.jpg' for reading: No such file or directory in /var/ on line 7
--- CODE START HERE ---
<HTML>
<HEAD><TITLE>Title</TITLE></HEAD>
<BODY>
<?php
if(copy($img1, '/var/{
echo("Succesvol upgeload"
}
echo("name: $img1_name <P>"
echo("mime type: $img1_type"
?>
<FORM enctype="multipart/form-data" methode="POST" action="upload.php">
<INPUT type="hidden" name="MAX_FILE_SIZE" value="99000">
<INPUT type="file" name="img1" size="25">
<INPUT type="submit" name="submit" value="upload">
</FORM>
</BODY>
</HTML>
--- CODE ENDS HERE ---
What do I wrong, please help me,
Qwark
When i have choose a file on my harddisk (I use Windows 95)
And click on the button upload i get the next error:
Warning: Unable to open 'C:\\files\\0013-0007-1.jpg' for reading: No such file or directory in /var/ on line 7
--- CODE START HERE ---
<HTML>
<HEAD><TITLE>Title</TITLE></HEAD>
<BODY>
<?php
if(copy($img1, '/var/{
echo("Succesvol upgeload"
}
echo("name: $img1_name <P>"
echo("mime type: $img1_type"
?>
<FORM enctype="multipart/form-data" methode="POST" action="upload.php">
<INPUT type="hidden" name="MAX_FILE_SIZE" value="99000">
<INPUT type="file" name="img1" size="25">
<INPUT type="submit" name="submit" value="upload">
</FORM>
</BODY>
</HTML>
--- CODE ENDS HERE ---
What do I wrong, please help me,
Qwark