Source Code : Appending to a file

PHP Is Open Source Programming Language You Can Download and use It, You required xampp server and wamp server . You download From xampp server from https://www.apachefriends.org/download.html. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://php.net/. Click Here or search from google with Libraries Name you get jar file related it and also http://php.net/ is a official site

Appending to a file

 
<?php  

  # for Linux use...
  # $filename = "/home/mike/Desktop/newfile.txt";

  # for Windows use...
  $filename = "C:\newfile.txt";

  $file = fopen( $filename, "a" );
  $string = "			October 13,2010";

  fwrite( $file, $string );
  fclose( $file );
?>

<html>

 <head>
  <title>Appending to a file</title>
 </head>

 <body>

 <?php
  $file_length = filesize( $filename );
  echo( "$filename is now $file_length bytes" );
 ?>

 </body>

</html>
  
  

Thank with us