Unexpected character in input: '\' (ASCII=92) state=1
| From: | Gobins, Debbie | Date: | Sat, 10 Feb 2001 00:53:31 +0000 |
| Subject: | Unexpected character in input: '\' (ASCII=92) state=1 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39041@lists.php.net to get a copy of this message | ||
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?