moved servers - code not behaving the same

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
mkaye
Forum Newbie
Posts: 8
Joined: Sat Oct 29, 2005 9:40 am

moved servers - code not behaving the same

Post by mkaye »

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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It sounds like output buffering is turned on by default in php.ini.

Code: Select all

ini_set('output_buffering', 'Off');
mkaye
Forum Newbie
Posts: 8
Joined: Sat Oct 29, 2005 9:40 am

Post by mkaye »

d11wtq wrote: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 buffering
do i have to do something else?

mark

phpinfo says 'not set'
Post Reply