Php write buffer to file
I am having trouble with an update script. It runs for a few hours so I would like it to output live to a text file. I start the document with
Then within the while loop (as it iterates through the records of the database) I have this
And finally the logit function
However the log file remains empty. What am I doing wrong? asked Jul 22, 2010 at 11:02
2 try
answered Jul 22, 2010 at 11:05
jigfoxjigfox 17.9k3 gold badges56 silver badges73 bronze badges 0
answered Jul 22, 2010 at 11:07
Ahmed AmanAhmed Aman 2,3431 gold badge19 silver badges33 bronze badges For anyone coming here looking for a function for this, I wrote a nice one today:
Sample usage:
answered May 17, 2018 at 13:02
cronokleecronoklee 6,0548 gold badges48 silver badges75 bronze badges
|