I am trying to write a file out in php (it is actually another php script I am writing out to the local disk).
I have encoded the data to be written out in base64.
I then use the following code to write the file :
However, the resulting file has an extra CR at the end of every line - works fine but just looks terrible LOL!Code:$fh=fopen("newscript.php","a"); fputs($fh,base64_decode($newscript)); fclose($fh);
Any ideas much appreciated please.