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

2001-02-09 Thread CDitty
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 a

[PHP] Unexpected character in input: '\' (ASCII=92) state=1

2001-02-09 Thread Gobins, Debbie
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")

Re: [PHP] Unexpected character in input: '\'

2001-02-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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

[PHP] Unexpected character in input: '\'

2001-02-09 Thread CDitty
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 ge