Re: php line error. .

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

 



'Yemi Obembe wrote:

just care to know how php does the line counting when it echoes error messages like:

parse error: unexpected '}' on line 129

1. does the "line counting" includes empty lines
yes.
2. are externally included files (using include(), require() etc) also "line counted"(sic)?
no. (but the line with the include() call counts normally
3. are d parts of the file that are not in php (i mean that are not contained within the php delimeters) also counted?
yes.

in short, it's the line number of the script as if it were a plain text file.

cheers,
--
- Martin Norland, Sys Admin / Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux