Re: [PHP-DB] php line error. .

2005-05-17 Thread martin . norland
'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




**

IMPORTANT NOTICE

This communication is for the exclusive use of the intended recipient(s)
named above. If you receive this communication in error, you should
notify the sender by e-mail or by telephone (+44) 191 224 4461, delete
it and destroy any copies of it.

This communication may contain confidential information and material
protected by copyright, design right or other intellectual property
rights which are and shall remain the property of Piranha Studios
Limited. Any form of distribution, copying or other unauthorised use
of this communication or the information in it is strictly prohibited.
Piranha Studios Limited asserts its rights in this communication and
the information in it and reserves the right to take action against
anyone who misuses it or the information in it.

Piranha Studios Limited cannot accept any liability sustained as a
result of software viruses and would recommend that you carry out your
own virus checks before opening any attachment.


<<<>>>AdmID:DD28CD8AE59761E4E0C23AE2EB03BE38



**

IMPORTANT NOTICE

This communication is for the exclusive use of the intended recipient(s)
named above. If you receive this communication in error, you should
notify the sender by e-mail or by telephone (+44) 191 224 4461, delete
it and destroy any copies of it.

This communication may contain confidential information and material
protected by copyright, design right or other intellectual property
rights which are and shall remain the property of Piranha Studios
Limited. Any form of distribution, copying or other unauthorised use
of this communication or the information in it is strictly prohibited.
Piranha Studios Limited asserts its rights in this communication and
the information in it and reserves the right to take action against
anyone who misuses it or the information in it.

Piranha Studios Limited cannot accept any liability sustained as a
result of software viruses and would recommend that you carry out your
own virus checks before opening any attachment.


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

Re: [PHP-DB] php line error. .

2005-05-16 Thread Martin Norland
'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


RE: [PHP-DB] php line error

2005-05-16 Thread Bastien Koert
It does count blank lines, note that the line with the error maybe well 
above the line shown in the error...the only indicates where the error 
(whatever it may be) causes a problem in the script.

Bastien
From: 'Yemi Obembe <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] php line error
Date: Mon, 16 May 2005 05:51:32 -0700 (PDT)

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
2. are externally included files (using include(), require() etc) also 
"line counted"(sic)?
3. are d parts of the file that are not in php (i mean that are not 
contained within the php delimeters) also counted?


-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php