Hi, my name is Mario, I need help. BAD.
I'm doing a FLASH (not that good at this one either) application which requieres a small DB which I take out of a txt file. I'm using the LoadVar statement to load variables into the PHP file in order to write into a Notepad.
Now, here's where I'm getting stuck
I can save data into the PHP file, but I need to save the data ON THE NEXT TO LAST LINE of the file (or 20 characters before EOF), and the tutorial I got tought me about getting to the end of it with
$gotoLastByteOfTxTFile = @fseek($myTextFileHandler,0,SEEK_END);
Is there a Search function I can use??
Perhaps FEOF, I dunno, or FILE_GET_CONTENTS....
TIA
Take Care