Re: Unexpected character in input: '\'

From: Date: Sat, 10 Feb 2001 00:37:26 +0000
Subject: Re: Unexpected character in input: '\'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39037@lists.php.net to get a copy of this message
In article <5.0.0.25.2.20010209155218.02427d50@redhotsweeps.com>, mail@redhotsweeps.com (CDitty) wrote: > 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? -- CC

« previous php.general (#39037) next »