You are here: RE: [PHP] which class it is? « PHP « IT news, forums, messages
RE: [PHP] which class it is?

Posted by Yangshiqi on 03/07/05 05:50

Sorry for that all my friends, I just came from a vocation during the
weekend, so I can't read your threads. Thanks for all your help.

The debug_backtrace() is powerful to debug, but when I construct my classes
with simpleTest or other opensource applications, it contains lots of info
that I don't concern on in my application. So I decide to write or find
something a little bit simpler.

I just want to trace my application with the debughelper, when I want to see
what happened in it. Then I can get sth like this:

2005-03-07 11:41:15.355297 soapclient: SOAP message length: 455 contents
2005-03-07 11:41:15.355583 soapclient: transporting via HTTP
2005-03-07 11:41:15.356393 soapclient: sending message, length: 455
2005-03-07 11:41:15.355823 soap_transport_http: scheme = http
2005-03-07 11:41:15.355961 soap_transport_http: host = 172.24.107.244
2005-03-07 11:41:15.356092 soap_transport_http: path =
/BSSRemoteWebService/CustomerService.asmx

The style is $this->getMicroTime().' '.get_class($this).": $string \n<br>";
When I inheritlize my new class from debughelper.
Well, I use php4. Sorry I forgot to declare it. If I use v5, exception is a
good choice.

Best regards,
Yang Shiqi



-----Original Message-----
From: Jochem Maas [mailto:jochem@iamjochem.com]
Sent: Friday, March 04, 2005 11:10 PM
To: Jason Barnett
Cc: php-general@lists.php.net
Subject: Re: [PHP] which class it is?

Jason Barnett wrote:
> Yangshiqi wrote:
>
>>And I do not want all my classes to inherit the debughelper.
>>
>>
>>Best regards,
>>Yang Shiqi
>>
>
>
> Yikes! I swear, some of these mailreader programs that people use... I
> thought this was an actual answer to someone's question... anywho...
>
> Have you checked out debug_backtrace() and set_error_handler()
> http://php.net/manual/en/function.debug-backtrace.php
> http://php.net/manual/en/function.set-error-handler.php


I have given up on this thread - the logic is all of a sudden lost on me!
I think we gave Yang some good stuff to chew on - last I read he was going
to
dig into exceptions! :-)

hey Yang, if you get stuck with Exceptions somewhere please post to a new
thread :-)

>
> Exceptions in PHP5
> http://php.net/exceptions
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 

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

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