Is there any limit on the file size that I want to parse ?
Because I am trying to parse a big file, not very big,
but like 35MB, and it is giving me
Fatal error: Maximum execution time of 60 seconds exceeded in
but in the php.ini file,
I already set it like this:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 9000 ; Maximum execution time of each script, in seconds
max_input_time = 9000 ; Maximum amount of time each script may spend parsing request data
memory_limit = 100M ; Maximum amount of memory a script may consume (16MB)
and restart the machine after the new setting.
Please help, thanks.
Hi Derek,
There's no limit. The 1024 in the fread() function is just chunk size that is used - that code is in a loop that continues until the entire file has been parsed.
Cheers!
David.
I know if I want the unlimit execution time,
I do set_time_limit(0),
how about if I want to use unlimit memory ?
is there anything I can set ?
thanks,
Derek
I know I can set a
set_time_limit(0),
but I mean is there a file size limit in your code ?
because I think I see something like
fread(something, 1024)
thanks,
Derek