I'm trying to load a file, add some text and then save the file, I have this:
$css = file_get_contents("unzipped/$folder/style.css");
if(file_put_contents("ADD THIS " . $css, "unzipped/$folder/style.css")){
echo("All Done!");
}
and even though 'All Done!' is echoed the contents of the file isn't changing.
Any ideas? :S
EDIT:
I also want to add that if I echo $css
the contents of the file is shown correctly