Re: Syntax Error On Line 1

From: Date: Wed, 01 Aug 2001 00:49:45 +0000
Subject: Re: Syntax Error On Line 1
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60547@lists.php.net to get a copy of this message
Uh...this is just a guess, but could it be the line endings are confusing PHP? Perhaps you have DOS formatted files in Unix or Unix files in DOS or Mac files in DOS or DOS files in Mac or ...you get the idea... That is, in DOS lines are ended by \n\r, in Unix by \n, and in Mac by \r. Lacking the correct line endings often leads to confusion for parsers. Cheers, Sterling Php Wannabe wrote:
I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a "syntax error" it's always reported "on line 1", even when it's obviously not on line 1. I *never* get an error reported on any other line #. Any thoughts on this? Thanks!


« previous php.general (#60547) next »