So I am trying to open a manifest File, add a A row of text to last row of text (ex.#Revision Date 21-12-2016), as of now what happens is i get this #Revision Date 20-12-2016#Revision Date 21-12-2016
all on the same line. instead i would like this after each time i run the script, to add the the new line under the old line
#Revision Date 20-12-2016
#Revision Date 21-12-2016
#Revision Date 22-12-2016
I have tried many different solutions like . PHP_EOL, "\n" here is my script that i have been using
Script
<?php
$filename2 = 'newapp/cache.manifest';
$current1 = file_get_contents($filename2);
$current1 .= "John Smith". PHP_EOL;
file_put_contents($filename2, $current1);
?>