You are here: Re: What is the best way to debug/test a PHP code ? « PHP Programming Language « IT news, forums, messages
Re: What is the best way to debug/test a PHP code ?

Posted by Tom on 11/30/06 01:41

This is more related to debugging, but one thing I found very helpful
was writing my own error-handler so that it provided a trace when an
error did occur. This page is helpful:

http://www.php.net/manual/en/function.set-error-handler.php

Also, someone mentioned print_r(). I wrote my own function that
basically does this, except formats the output more nicely and provides
a function and file trace.

If your code is more object-oriented, then unit-testing would a good
term to research.

Tom

On Nov 28, 12:49 am, "sudee...@gmail.com" <sudee...@gmail.com> wrote:
> Please let me know how do we effectively and quickly test a php code ?

 

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

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