Code: Select all
</events>Code: Select all
$writeInTxtFile = @fwrite($myTextFileHandler,"\<event title=\"$receivedFromFlashData\" description=\"once upon a time\" startDate=\"2006-10-01 15:30:00\" endDate=\"2006-10-01 17:30:00\" allDay=\"0\" eventType=\"once\"/></events>");So my question/s: Is there a way to secure the placement of </events> at the bottom of the text file? If not is there a way to delete the previous </events> and then write another to cap the file off? Thanks for any help