954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can Python supersede PHP and/or Perl?

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML or dishing out scripts from the server like PHP on its own, or does it require external stuff like Django or CherryPy for that, or is it that it cannot replace PHP at all? Same question goes for Perl as well. Does Python allow you to do shell scripting (I don't know anything about it) and stuff like Perl, or it does not? I apologize if the questions sound dumb, but I really need to know!

Cupidvogel
Newbie Poster
22 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

Yes you need CherryPy/webPy stuff to use Python in files or you can do Python script outputting Html statements, but then you would end up reinventing the wheel. For shell scripting I think IPython is quite interesting: http://ipython.org/ipython-doc/rel-0.11/whatsnew/version0.11.html

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

here's an interesting article on the subject "I didn't even know about CubicWeb before it" http://www.itworld.com/software/192113/pillars-python-six-python-web-frameworks-compared

pyguy62
Posting Whiz
353 posts since Aug 2011
Reputation Points: 34
Solved Threads: 19
 

Thanks!

Cupidvogel
Newbie Poster
22 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: