please forgive me if this isn't the correct forum...
i am fairly new to PHP and have been enhancing a web application for the past 3 months
the original developer decided to move everything to a newer server last month & now i have some issues that i can't seem to resolve
i will attempt to describe my problem as best i can
i have code to upload files into a MYSQL DB, if they are small & complete in a short time they are OK
If they are larger then the page stops responding i.e. an 8000 record file seems to die between 500 & 750 records
on the old server i started outputting a msg every 1000 records as a sort of heartbeat msg and this seemed to fix it
on the new server my msgs never get sent until the task finishes - this is new behaviour
if i send a msg every record (instead of every 100 or 1000) my task will complete, but my msgs come in bursts, not continually like the old server
is there a setting that is controlling this behaiour?
i have set the time limit to 240, but this is the only parameter i have played with
it seems that if i don't generate enough text from the server to generate a burst of text the process stops communicating with the server
mark
PS the server is Apache
moved servers - code not behaving the same
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It sounds like output buffering is turned on by default in php.ini.
Code: Select all
ini_set('output_buffering', 'Off');i added this as the 1st line in my code, but it seems to be still bufferingd11wtq wrote:It sounds like output buffering is turned on by default in php.ini.
Code: Select all
ini_set('output_buffering', 'Off');
do i have to do something else?
mark
phpinfo says 'not set'