RE: [PHP] Bizarre Error when Using Escape Codes
| From: | Don Read | Date: | Wed, 16 Apr 2003 17:34:12 +0000 |
| Subject: | RE: [PHP] Bizarre Error when Using Escape Codes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144151@lists.php.net to get a copy of this message | ||
On 16-Apr-2003 Daniel R. Anderson wrote:
> Hi,
>
> If I type a string with an escape code, i.e. "\n" or "\n\r" I get the
> following errors:
>
> Warning: Unexpected character in input: '\' (ASCII=92) state=1 on line x
>
> Parse error: parse error, unexpected T_STRING, expecting ',' or ';' on
> line x
>
>
> What am I doing wrong?
A. Look for an open double quote on line x-(1 || 2).
add some 'echo __LINE__ , "";
to track it down.
B. you have a non-ascii character before line x.
use 'cat da_scritp.php |col -b > clean.tmp', and
then diff -abC the two files.
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.