I highly doubt that was all. Now uploads bigger than 7megs are allowed, you
should also make sure your script is able to deal with it files LARGER than
that. Hmm, maybe this didn't seem to make much sense. 

What I'm talking about is this:

         memory_limit = 8M      ; Maximum amount of memory a script may
consume (8MB) 

When using fwrite you probably load the entire file into memory and have a
high chance on exceeding the size of 8MB. Or if you're smart you do it line
by line and there's less problem with it.

Also I'd like to point you to the "move_uploaded_file" function. Just in
case you didn't know about it. 

Greetz,
Wouter

( sorry for the messy kinda post. I'm just all too confused about the
disappointing Matrix Revolutions... I'd like to compare it to a third-level
rip off of The Lord of the Rings (trilogy) meets Star Wars )

-----Original Message-----
From: Mike At Spy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday 04 November 2003 18:55
To: Roger Spears
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] fwrite, fopen, or fread limit?


Yes, that was it.

Thanks! :)

-Mike


> -----Original Message-----
> From: Roger Spears [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2003 12:45 PM
> To: Mike At Spy
> Subject: Re: [PHP] fwrite, fopen, or fread limit?
> 
> 
> check the php.ini file, there may be a file upload limit placed there.  
> I ran into a similar problem awhile back....I think it's called 
> max_file_upload or something like that...
> 
> Thanks,
> Roger
> 
> Mike At Spy wrote:
> 
> >Does anyone know if the commands for fwrite, fopen, or fread have 
> >memory limits in dealing with large files?
> >
> >I created a system for uploading files to a server.  Small files
> work fine.
> >Larger ones (around 7 megs) do not work at all.
> >
> >Thanks,
> >
> >-Mike
> >
> >  
> >
> 
> 
> 

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to