Hi ,
I am a novice in PHP. So pardon me if my queries looks silly.
I am trying to do the following :
- Open a 50M file ( a log file ) and read the content into a variable .
- Then echo the variable in between
tag.
- Fread function used( both by breaking it into chunks of data and in one go ) .
Page loads approx 300 K data and then hangs. It doesn’t load it fully. Smaller file content is working properly.
I changed the output_buffering in php.ini to on and bigger number ( default was 4096) .
I tried ob_end_flush() in the end.
Please let me know what am I missing here.
Regards,
Ankit Kumar