You are here: Re: [PHP] Re: Fw: Identify which function called another « PHP « IT news, forums, messages
Re: [PHP] Re: Fw: Identify which function called another

Posted by Jochem Maas on 10/04/34 11:06

Lars B. Jensen wrote:
>>>> Is there any way, I from one function can identify which other
>>>> function called it, without parameter passing the name manually ?
>>
>> I still question whether its correct to design a function which
>> requires this. I thought the idea of encapsulating code inside a
>> function is that its non-dependent/black-boxed.... still for every
>> rule there is an exception!
>
>
> Need it for my "identify why the hell this error occured, send email to
> the admins with full debug, server variables, time, pop that into the
> errorhandling database for cross referencing if it happened before".

damn good reason to use debug_backtrace() if you ask me :-)

>
> Practically, yesterday, we spend a few hours tracing a special error
> occuring extremely seldom and ended up making some crappy debugging on a
> livesite.
>
>>> Please don't post twice in an hour if you haven't yet received your
>>> answer. With that in mind, I have an answer for you. :-)
>>
>> maybe Lars thought his post had disappeared into /dev/null, not
>> altogether strange considering the fluctuating time delays in posts
>> being sent out! then maybe he's an impatient s.o.b ;-)
>
>
> Or maybe Lars has multiple email accounts, and realized he was sending
> from the wrong one forgetting he had authorized it beforehand.

I'm guessing Lars has multiple email accounts. ;-)

>
> / Lars
>

 

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

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