crazybeans128
Programmer
Okay, here is the syntax i am using.
$fp=fopen($gbfile,'r+');
fwrite($fp, "Yo\n*****\nDude");
fclose($fp);
Everytime time I try to write to the file, it will simply overwrite what was there, if i have more than that, it won't write it. From what I've been reading, it should add that to the top of the file, but it just erases the file and starts over. What is wrong?
$fp=fopen($gbfile,'r+');
fwrite($fp, "Yo\n*****\nDude");
fclose($fp);
Everytime time I try to write to the file, it will simply overwrite what was there, if i have more than that, it won't write it. From what I've been reading, it should add that to the top of the file, but it just erases the file and starts over. What is wrong?