|
Posted by Murray R. Van Luyn on 09/30/34 11:24
Hi,
I want to store a file uploaded from a user form, but I can't seem to do so.
I can overwrite an existing file okay, but if it's not there to begin with,
no go.
move_uploaded_file($_FILES['my_file']['tmp_name'], $destination_file);
drwxrwxrwx
safe mode = OFF
You uploaded a file called Brands.txt of type text/plain that is 1347 bytes
long.
Warning: move_uploaded_file(Up/Brands.txt): failed to open stream: Disk
quota exceeded in /xxx/vanluynm/form.php on line 104
The same sort of thing happens when I try to use the following. If the file
exists everything is okay.
If it's not there to begin with, no luck.
$fp = fopen("$COUNTFILE", "w") or die("Can't open $COUNTFILE for write.");
flock($fp, 1);
fputs($fp, $file);
flock($fp, 3);
fclose($fp);
Any suggestions anyone?
Regards,
Murray R. Van Luyn.
[Back to original message]
|