What is your criteria for the definition of "best"?
Let me ask you what is best a screw driver or a hammer, pair of scissors or knife?
Answer to your question same as answering my questions above. Each of the above serves a specific purpose. So you can cut vegetables with a pair of scissors, but that is not what people do.
Both PHP and JSP have their own domains, you can find numerous sites implemented using JSPs. What makes you think that JSPs have flaw?
sriman roop wrote:Why PHP is more popular than JSP ?
Where did you find that PHP is popular over JSP?
One reason I know for using PHP for relatively small and not so business logic involved sites is the development cost and hosting cost (both are less for PHP).
Then its hosting providers like GoDady which do not support JSP hosting and provide ease of PHP development through utility/IDE (?) like Drupal.
P.S I know Drupal is actually a CMS, but I have used it to build a PHP site.