Write to a file

<?php
$text=(“Test text!”);
$write_to_file=fopen(“Textfile.txt”,”a”);
fwrite($write_to_file,$text);
fclose($write_to_file);
echo (“File successfully written”);
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*