Which is better - Python or PHP?

Liked this question? Tell your friends about it

2 Answers

Order by
Oldest to Newest
Newest to Oldest
Votes

Both the languages has differnt perspective, different requirement, its not the question of which one is better it aill depend on wat type of application you are planning to make

Here's a few difference:

PHP :  easier to deploy, because most web stuff already has it;
Python’s : better for desktop apps, PHP is really bad for that.

PHP is universally recognised as the default solution for web development. Python is not and this makes it harder to get Python recognised as a valid language for a web project.

Python is just as good for writing desktop software, web application backend, web application front-end, administration scripts, data-mining applications, high-performance networking libraries and the list goes on and on… Python is still an interpreted language and therefore may not perform as well in some situations as its compiled alternatives. Python probably wins on RESTful APIs, better HTTP libraries, better Character encoding handling, better socket libraries. Writing this stuff in PHP is tedious and fraught with difficulty. Python just looks cleaner for building such applications.

Its better to use php for small frond end reealted application (few 4-5 pages), python is good for big applications

dont go on any advise immediately, trust ur instincts

Python  best to write server shell.
 

Related Questions

Other people asked questions on similar topics, check out the answers they received:

Asked: Do remember this Monty Python skit?

Do you remember a Monty Python skit where the woman says, "Darling, we're going to have a baby", and he says "not a balloon? but you told me it was a balloon!"

Asked Anonymously: Send AIM instant messages with a .php script?

Our company uses AIM for instant messaging each other. Is there a way to use AIM to send a message using a .php script? What I'd like to do is have certain events (for example, when a customer gets ...

Asked Anonymously: Python help needed - windows

Hi, I need to install feedparser_utf8_decoding.patch. How can i apply this patch? What should I do with it? On windows!!! This file can be found on http://code.google.com/p/feedparser/issues/detail ...