Re: php and javascript error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, March 8, 2007 7:17 pm, jekillen wrote:
> Yes I have been around the bend with Netscape and now, Fire Fox
> javascript consoles.
> Before I got it that I need to format web content text for Unix, I
> went
> crazy trying to interpret
> Netscape console messages and the line numbers it said the errors were
> found. I was using
> Mac and text file are formatted with carriage return, not new line or
> line feed as in Unix text.
> The Javascript errors are based on Unix text formatting even if the
> browser is running on
> Mac or Windows (well I am not sure about Windows, I have never use it
> for web development
> but I do know that it uses both carriage return and line feed for
> plain
> text line endings).

The line numbers correspond to your HTML output lines, not PHP lines.

You may also want to tack on "\n" for most PHP print/echo statements,
so that the HTML source is nicely formatted.

Between JavaScript console and "View Source" you can almost always
track back to what PHP spit out what, unless your PHP code is a pig's
breakfast to start with.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux