Hi there,
cfg: w2k, Apache 1.3.20, php 4.04.pl1
I have his code:
<form method="POST" action="<?=$PHP_SELF ?>" enctype="multipart/form-data">
   <input type="file" name="media" size="40" maxlenght="150">
   <input type="submit" value="Submit" name="upload">
</form>
<? if ($upload) {
    copy ($media, "c:\tmp");
}
?>
This works fine for files with jpg and gif extensions but gives me error on
mp3 or wav. Should I set something different ?
error:
Warning: Unable to open 'none' for reading: No such file or directory in
upload.php on line 103 - that is copy function

Thank you

Ing. Daniel Šichta 
SWH s.r.o. 
Bytčická 2 
010 01 Žilina 
tel.: +421 41 505 5855 
fax: +421 41 500 1376 
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
http://www.swh.sk <http://www.swh.sk/>  

 

Reply via email to