?
Solved

Display actual error in code....?

Posted on 2006-07-24
5
Medium Priority
?
190 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 1000 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 1000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.
Suggested Courses

762 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