Hi,
I've installed phpdev on Windows XP to build a site before I upload it all onto the remote server.
My problem is that I can upload any file type under 2 Mb successfully, but when I try to load one over this I get the following error message:
"Warning: Unable to open 'none' for reading: No such file or directory in c:\phpdev\www\public\do_upload.php on line 3"
Here's My php.ini settings:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir = "c:\phpdev\temp"
; Maximum allowed size for uploaded files.
upload_max_filesize = 15M
Heres my php code:
<?
if ($superdat_name != "") {
copy("$superdat", "/phpdev/www/public/mp3/$superdat_name") or
die("Couldn't copy file.");
} else {
die("No input file specified.");
}
//mail("you@yourdomain.com", "File Uploaded",
//"$email sent $superdat_name, a $superdat_size byte file with a MIME type of $superdat_type");
?>
<head>
<title>phpUpLoad V 1.0</title>
<body bgcolor=white text=black link=blue>
<!--Header/Logo-->
<p align=center><img SRC="images/phpupload.png" ALT="phpupload.gif"></p>
<p align=center>You sent: <? echo "$superdat_name"; ?>, a <? echo "$superdat_size"; ?>
byte file with a mime type of <? echo "$superdat_type"; ?>.</p>
<font size="2">
<p align=center><i>Comments or Questions? E-mail</i>
<a href="mailto:"admin@web-connected.com">Web-connected.com</a>© 2001
</font></p></center>
</body>
How may I get round this?