You are here: Re: __LINE__ in include « PHP Programming Language « IT news, forums, messages
Re: __LINE__ in include

Posted by Geradeaus on 03/22/06 12:15

"Dana Cartwright" <danapub2@weavemaker.com> schreef in bericht
news:S2CTf.11147$Da7.3071@twister.nyroc.rr.com...
> From: "Geradeaus" <gehegeradeaus_nospam_@hotmail.com>
>> I am using a database class for my php projects, but I want to know if it
>> is possible to retrieve the line number of the "parent file" : I want to
>> use it for error reporting.
>>
>> E.g. When a query fails, I don't know the line number of the parent file
>> where the query is executed... very annoying.
>>
>
> It might be the case that debug_backtrace will give you the information
> you need.
>
> I'm not sure I understand your question, but if the problem is that you
> are including a file, and within that included file you detect an error,
> and you want to report where the included file was included from, then
> debug_backtrace is your friend.

That's what I'm looking for, thanks!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация