So i know the above code opens the blogfile.txt and the text inside the brackets after 'die' show that message if the file cannot be opened, but what does the R in ($opFile,"r") mean and why is does it have quotes around it?
$opFile = "blogfile.txt";
$fp = fopen($opFile,"r") or die("Error Reading File");
So the above code puts the blogfile.txt data into a variable named $data, but what is the code filesize($opFile) for and is it needed? And what is the code fclose for and is it needed?
$data = fread($fp, filesize($opFile));
I know the $n is a variable but what is the plus plus(++) for?
And in PHP what does the word explode do?
Finally, if you use a Flat text file database instead of mysql, is there a maximum file size limit for a flat file db? Would it be possible to have a 100GB flat file db? because i think i read that on notepad in windows xp it can only open up a maximum 45KB .txt file. If there is a limit, how do you create an empty flat file db to takeover from the first db and how do you make them communicate with each other?