note 35617 added to function.fopen

From: Date: Mon, 08 Sep 2003 14:59:24 +0000
Subject: note 35617 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-55829@lists.php.net to get a copy of this message
I understand the difference between "r" and "r+": Without the "+" after the "r", a following "fwrite()" is ignored. But can someone really explain precisely the difference between : $file=fopen("file.htm","a") and $file=fopen("file.htm","a+") ...without repeating allways the same stuff ("a"=Open for writing only; ..."a+"=Open for reading and writing;...) In both cases, one can read and write !!! So where is the difference ? The same question concerns "w" and "w+". Thank you for any concise help. Romuald. ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35617 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35617&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35617&report=yes

« previous php.notes (#55829) next »