Re: What is the best way to debug/test a PHP code ?



sudeerao@xxxxxxxxx wrote:
Please let me know how do we effectively and quickly test a php code ?


There have been whole volumes written about testing code and code quality. It's not at all a simple question. Larger programming departments have entire groups of people dedicated to test and quality control.

As a short answer, you test code with valid data to ensure it does what you want. Then you test it with invalid data to ensure it properly handles the bad input. And when you make changes, you repeat the process to ensure you haven't regressed anything.

Test scripts help a lot. But to use them the code must be well documented and its purpose clear.



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.