--- olunkwaik <[EMAIL PROTECTED]> wrote:

> Hello
> How does Php read Parse Error on a script.
> How to know the line error?

Based on your earlier post, I would imagine that your web host is configured to show PHP errors in
the browser page.  This is not always true and sometimes an error will generate a blank page.  If
display_errors is not "on" in the php.ini configuration file then hopefully a log file has been
designated and created so you can see the errors as they are generated.  Very recent PHP configs
come with display_errors "off" and no logfile identified and this causes some confusion.

When a line number is indicated in the Parse Error message, it may not be the line number which
contains the actual error.  The error may have been generated a few lines above, especially in
cases where there is a missing semicolon or unclosed paren or brace.  It is not unusual to see an
error on line 43 when your program is only 42 lines.  This is often due to a missing brace.

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester January-June 2006.  Two new class topics.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to