PHP Page ( linked with an Apache Server) - not loading fully and hanging

Hi ,

I am a novice in PHP. So pardon me if my queries looks silly.
I am trying to do the following :

  1. Open a 50M file ( a log file ) and read the content into a variable .
  2. Then echo the variable in between
     tag.
  3. 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

It’s going to be the code on the page, not the server.

Sponsor our Newsletter | Privacy Policy | Terms of Service