Re: [PHP] Error Reporing Questions with Mac
Ed, Read the rest of the email. The problem WASN'T to do with what CLIENT was reading the page at the time, it was to do with what SERVER was running the PHP code. Saving his text files onto the Mac, and then trying to run them produced "Error on line 1", whilst saving and running the code on Win X resulted in "Error on line 43". Hence, it was a problem with line ending on Mac files. Once again, you would get an "error on line 1" if PHP doesn't recognise the line-endings, and sees just one really long line. If you read the rest of the thread, you'll find that the OP has "got it sorted" and it was infact a problem with Mac line breaks. He changed the default in Dreamweaver to Windows-line-breaks, and all is well. Justin French Creative Director http://Indent.com.au on 21/06/02 3:00 AM, Lazor, Ed ([EMAIL PROTECTED]) wrote: > Why would this be the case? PHP is server-side and client independent... > >> -Original Message- >> Your problem is undoubtably to do with the difference in line >> endings on >> mac/pc/unix. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error Reporing Questions with Mac
Why would this be the case? PHP is server-side and client independent... > -Original Message- > Your problem is undoubtably to do with the difference in line > endings on > mac/pc/unix. > This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Reporing Questions with Mac
i've seen this quite often and in my case, it always happens when you have en error in an "if" or similar sentence. then it always tells me theres an error on line 1 (ie 5.2 on mac os x). chris Am Dienstag den, 18. Juni 2002, um 17:12, schrieb Kevin Ruiz: > 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 > [EMAIL PROTECTED] 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 >>> >> >> >> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > |/ @ @ --oOO-(_)-OOo--- christian rellstab rotbuchstrasse 52 8037 zürich tel (p): 043 255 04 69 tel (g): 01 633 40 15 fax (g): 01 633 12 61 [EMAIL PROTECTED] http://www.rellstab.ch/christian ---
Re: [PHP] Error Reporing Questions with Mac
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 ([EMAIL PROTECTED]) 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 > [EMAIL PROTECTED] 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 >>> >> >> >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Reporing Questions with Mac
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 [EMAIL PROTECTED] 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 >> > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error Reporing Questions with Mac
Kevin, This can either be set dynamically by the error_reporting() function, or changed in the php.ini file. http://www.php.net/manual/en/function.error-reporting.php http://www.php.net/manual/en/features.error-handling.php Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Virtuoso Universal Server -Original Message- From: Kevin Ruiz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Error Reporing Questions with Mac 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Reporing Questions with Mac
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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php