RE: [PHP-WIN] Re:[PHP-WIN] parse error
| From: | alain samoun | Date: | Thu, 14 Mar 2002 03:21:28 +0000 |
| Subject: | RE: [PHP-WIN] Re:[PHP-WIN] parse error | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12621@lists.php.net to get a copy of this message | ||
Since we don't know what are: $notch_member and $bio, you should print them,
that maybe it! ;)
A+
Alain
-----Original Message-----
From: ChaoticWorks@cs.com [mailto:ChaoticWorks@cs.com]
Sent: Wednesday, March 13, 2002 7:08 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Re:[PHP-WIN] parse error
i fixed that....i feel stupid for missing that....but i still get the error
even after i fixed that
In a message dated 3/13/2002 9:01:59 PM Central Standard Time,
alain@sonic.net writes:
> I suppose that line 28 is:
>
> if (!fp) die ("Cannot open file for writing. Please contact me.");
> |___ You forgot the $ char for $fp
>
> A+
> Alain
>
> -----Original Message-----
> From: ChaoticWorks@cs.com [mailto:ChaoticWorks@cs.com]
> Sent: Wednesday, March 13, 2002 5:53 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] parse error
>
>
> how come whenever i run this code i get a error that says
>
> "Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
> c:\phpdev\www\public\notch\bioupdate.php on line 28
>
> Parse error: parse error in c:\phpdev\www\public\notch\bioupdate.php on
line
> 28"
>
>
> <?php
> $fp = fopen("./notch/" . $notch_member . ".txt", "r+");
> if (!fp) die ("Cannot open file for writing. Please contact me.");
> fwrite($fp, $notch_member . $bio);
> ?>