Solved

Display actual error in code....?

Posted on 2006-07-24
5
186 Views
Last Modified: 2011-09-20
Hi all,
Is there anyway to have PHP display the actual line of code causing problems, rather than just a line number?

0
Comment
Question by:fox_statton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Accepted Solution

by:
floorman67 earned 250 total points
ID: 17167795
no php wont do that for you via script, but the error code and line nubmber help you ALOT in tracking down the problem.

it is easy to find the line number with any script editor that segments and lists the code line number by line number.

I use Web Builder 2005 ... http://www.blumentals.net/webuilder/

they have a free trial you can test out.

I am sure there are free ons around that do the same thing or similar.

0
 
LVL 29

Assisted Solution

by:TeRReF
TeRReF earned 250 total points
ID: 17168128
You could use debug_backtrace() to provide you with extra information. You can add it in a trigger_error() event.
http://php.net/debug_backtrace
http://php.net/trigger_error
0
 
LVL 12

Expert Comment

by:AmigoJack
ID: 17168548
oh please... have you ever considered pressing CTRL+G in notepad/editor?

more helpful could only be self-healing-php-scripts ;-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question