Re: Error Reporing Questions with Mac

From: Date: Tue, 18 Jun 2002 15:22:07 +0000
Subject: Re: Error Reporing Questions with Mac
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102711@lists.php.net to get a copy of this message
Your problem is undoubtably to do with the difference in line endings on mac/pc/unix. Basically, when PHP parses your file, it see's it all as one line, and is finding the error on LINE 1, which is correct. When the same file is saved on a unix or pc system, the line endings are different, and PHP recognises them. I'm using BBEdit Lite as a text editor on my Mac, and it has the option of saving the file in Mac, PC or Unix format, to combat this problem. Look for a simular feature in your text editor (try search for "file format", or "line endings" in your help files, or grab BBEdit ($) or BBEdit lite (!$) from bare bones software. Justin French on 19/06/02 1:12 AM, Kevin Ruiz (kevinruiz@bigandbrown.com) wrote: > I'm sorry...I think I was unclear. > > Even if my script has an error on say line 42 it still tells me that the > error is on line 1. I've done some debugging and now that there's only one > error on the page but it always tells me that the error is on line 1. > > Thanks. > > > in article 1024412641.2218.2.camel@nightengale, Tyler Longren at > tyler@captainjack.com wrote on 6/18/02 11:03 AM: > >> Perhaps it was a typo, but "parse error on line 1" does state the line >> number. >> >> tyler >> >> On Tue, 2002-06-18 at 09:57, Kevin Ruiz wrote: >>> I'm running php 4 on a unix server and am experiencing a problem with error >>> reporting I'm getting on my mac. >>> >>> When I get a parse error it won't tell me what line the error is on...it >>> simply says "parse error on line 1". When I test the page on a pc I get an >>> error message that I can use... "parse error on line 143". >>> >>> Does anyone have any ideas? I get the same error when using IE for both OS >>> X and 9. >>> >>> Thanks in advance, >>> Kevin >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> >> >

« previous php.general (#102711) next »