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 ?

Short question.
Difficult to answer.

It completely depends on your requirements.
You can judge the code by:
- security (header/email-injection, sql-injection, loginlogic)
- functionality: Does the code produce what you want, also if you feed it
information designed to confuse it.
- Codingstyle: Can a PHP programmer easily read through the code? Does it
have some comments to explain what is going on? If you use a database, is
it designed neat and smart?
- stresstesting: Do you expect a lot a concurent hits, and is the setup on
your machine capable of handling that? (Of course it is up to you to set
the minimum)

etc.

So what is it you want?

I think it is safe to say you need an experienced PHP programmer to judge
any of the above (except the stresstesting maybe).

Regards,
Erwin Moller
.