Hi, [CODE]if(!$mode){ $mode = "start"; } if($mode == "start"){ $handle = fopen($filename, "r") or die("Read: The file <i>'".$filename."'</i> could not be opened."); $data = fread($handle, filesize($filename)) or die("Read: The file <i>'".$filename."'</i> could not be read."); fclose($handle); } elseif($mode == "save"){ $handle = fopen($filename, "w") or die("Write: The file <i>'".$filename."'</i> could not be opened."); fwrite($handle, $data) or die("Write: The file <i>'".$filename."'</i> could not be writen."); fclose($handle); echo "File data saved OK!<br><br>"; $handle = fopen($filename, "r") or die("Read: The file <i>'".$filename."'</i> could not be opened."); $data = fread($handle, filesize($filename)) or die("Read: The file <i>'".$filename."'</i> could not be read."); fclose($handle); }[/CODE] This is my php code for a basic file open / save (a section of my script). the filename is in the style of "./" followed by the filename. For some reason, whenever i save a file, extra slashes appear next to " and '. eg. include('Hello.php'); include("Hi.php"); those would become: include(\'Hello.php\'); include(\"Hi.php\"); The file contents are being displayed in a text area. when a save button is pushed, the data is saved. What is causing this error?