fwrite.php : fwrite « File Directory « PHP






fwrite.php

 
<?php
   $subscriberInfo = "data";
   $fh = fopen("/data.txt", "at");
   fwrite($fh, $subscriberInfo);
   fclose($fh);
?>
  
  








Related examples in the same category

1.A simple access counter
2.Appending to a file
3.fwrite() function writes string to the file.
4.Using file-related error information
5.Writing data to a file
6.Storing user information in a text file