Re: [PHP] Problem: Distortion while saving text file.

2005-12-14 Thread David Grant
Could it be the other way around, i.e. Windows is stripping slashes, and Linux is not? How does $contents come to exist in the script? Check for any difference in your ini files for magic_quotes_runtime. Cheers, David Grant Janne Miettunen wrote: > What could be wrong when this is transformed:

[PHP] Problem: Distortion while saving text file.

2005-12-14 Thread Janne Miettunen
What could be wrong when this is transformed: "" to this form: "" The line is saved to text file with this function: function savesite($site, $lang, $contents){ if (check_session()){ $file=fopen('content/' . $site . '_' . $lang . '.txt', "w"); fwrite($file, $contents); fclose($file); } I