I am trying to write a text file on my server, but I am getting the following error. Unexpected character in input: '\' (ASCII=92) state=1 Here is my code for the text file. $file = "/path/to/my/server/$userid.win"; $text = "\n"; $fp = fopen($file, "w"); fwrite($fp, $text); fclose($fp); I am getting this error BEFORE it tries to write the file. Can anyone offer any ideas or solutions? Thanks CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]