Re: Unexpected character in input: '\' (ASCII=92) state=1

From: Date: Sat, 10 Feb 2001 03:48:36 +0000
Subject: Re: Unexpected character in input: '\' (ASCII=92) state=1
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39051@lists.php.net to get a copy of this message
My apologies. I should have said what line the error was on. The problem lines was $text = "\n";. I tried an experiment and put a space before the \ and that got rid of the error. Go figure. Chris At 06:53 PM 2/9/01, Gobins, Debbie wrote:
You might try this, putting the escape character around the userid.> $file = "/path/to/my/server/\"$userid.win\""; 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. What's in $userid? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#39051) next »