preCharge Forums - View Single Post - A php notepad
Thread: A php notepad
View Single Post
Old 07-27-2006   #6 (permalink)
omghaxzs
Junior Member
 
Join Date: Jul 2006
Age: 17
Posts: 17
Send a message via AIM to omghaxzs Send a message via MSN to omghaxzs
Default Re: A php notepad

Quote:
Originally Posted by Jamie
Code:
if(isset($_POST["notes"])){
 $file = fopen("note.txt",w);
   if(fwrite($file,$_POST["notes"])){ 
    echo "File Written Successfully";
just my opinion, but don't you think the fopen should be fopen("note.txt",a+);?

just so if he needs to store more notes in the same file it doesn't overwrite it because the file pointer starts at the end.
omghaxzs is offline   Reply With Quote

 
Credit Cards | Mortgage Calculator | Loan | Buy PSP | Debt Consolidation