It is because your using
Try out this
What you doing wrong is, you open a file for writing only "w", using the letter a == "append" will add content to the open handle.
PHP Code:
fopen($ourFileName, 'w')
Try out this
PHP Code:
fopen($ourFileName, 'a')
What you doing wrong is, you open a file for writing only "w", using the letter a == "append" will add content to the open handle.