Reply to Can't write a file

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация