Using php, how to insert text without overwriting to the beginning of a text file

前端 未结 4 1506
灰色年华
灰色年华 2020-12-06 03:05

I have:

 \"\")
{
   fwrite($file,         


        
4条回答
  •  囚心锁ツ
    2020-12-06 03:36

    You get the same opening the file for appending

     "")
    {
       fwrite($file,$_POST["lastname"]."\n");
    }
    fclose($file);
    ?>
    

提交回复
热议问题