Re: parse error is always on line 1 == error ?

From: Date: Fri, 27 Apr 2001 08:12:26 +0000
Subject: Re: parse error is always on line 1 == error ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50577@lists.php.net to get a copy of this message
On Fri, Apr 27, 2001 at 08:49:46AM +0200, Jimmy Lantz wrote: > Hi, I have a problem, > that when I get a parse error it always says that it's on line 1 in > this or that file. > Where is the configuration option to set this right? When I had this problem it turned out that the files in question had been created on a Macintosh in Adobe GoLive, I think. The newline characters in files created by this program are different to those used on Unix or DOS computers, which messes up things to the effect that the PHP parser only sees a single line. I used a tool from the Perl Power Tools page to convert the Mac files to Unix format, and the problem went away: http://language.perl.com/ppt/src/nlcvt/index.html Cheers, Frank

« previous php.general (#50577) next »