[PHP] parse error is always on line 1 == error ?
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? I have on another server seen that it's possible to get it to state the actual error line. (it's PHP Version 3.0.15 on solaris) Please help me out on this one. Best wishes Jimmy Lantz Sweden
Re: [PHP] parse error is always on line 1 == error ?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] parse error is always on line 1 == error ?
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I remember to set line breaks to Unix \n (rather than Mac and Windows line endings, which use different characters). You may be running into a similar problem. 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? I have on another server seen that it's possible to get it to state the actual error line. John Platte Truth binds the mind to what satisfies it, but worldly thinking does not satisfy and therefore ignites curiosity. -- St. Theophan the Recluse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] parse error is always on line 1 == error ?
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I remember to set line breaks to Unix \n (rather than Mac and Windows line endings, which use different characters). You may be running into a similar problem. 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? I have on another server seen that it's possible to get it to state the actual error line. John Platte Truth binds the mind to what satisfies it, but worldly thinking does not satisfy and therefore ignites curiosity. -- St. Theophan the Recluse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]