SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Which Programming language is best - PHP or Python???

    Hi All,
    I want to create a dynamic website. I want to create backend cms for that site. Can any one suggest me which programming language is best - PHP or Python or some other.

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you would be better using an opensource platform, many have already been written that do this exact task.

    try joomla, drupal and wordpress

  3. #3
    SitePoint Wizard
    Join Date
    Oct 2005
    Posts
    1,763
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    PHP is much more widely used than Python. That fact alone gives PHP the advantage.

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,042
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    If you don't already know python or have a desire to learn it than PHP is probably a better option. PHP offers considerably more in terms of open source, deployment and learning resources.
    The only code I hate more than my own is everyone else's.

  5. #5
    SitePoint Member
    Join Date
    Nov 2012
    Location
    California,USA
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    although you can choose wordpress, joomla etc but if you want to choose between php and python then i think that php is better than python and i am a good student of that.thank you

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,595
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    If you already know Python and have yet to learn PHP then Python might be the better choice.

    If you can find a CMS already written in Python that does exactly what you want then Python might be the better choice.

    There are far more CMS already written in PHP so you are more likely to find an appropriate PHP CMS making PHP the better choice.

    Also PHP is intended more specifically for creating web pages whereas Python has other uses outside of the web and so if you are looking to learn one or the other specifically for creating dynamic web pages then PHP is most likely the better choice.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  7. #7
    SitePoint Enthusiast PromptSpace's Avatar
    Join Date
    Jun 2012
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There is no best programming language. There is only a language that you know best and you are comfortable with. Both languages are easy and powerful, however PHP is being slowly phased out of mainstream development. It's the days of Ruby on Rails and Django (a python derivative) so yeah, learning python might just be a bit better at this point of time.
    Host4Geeks | Hosting powered by geeks, enhanced with a scoop of
    love and awesomeness!!

    The goal as a company is to have customer service that's not
    just great, but legendary -Henry Ford

  8. #8
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by puneetshukla View Post
    Hi All,
    I want to create a dynamic website. I want to create backend cms for that site. Can any one suggest me which programming language is best - PHP or Python or some other.

    As I understood it, you want to create the CMS yourself.

    Like the poster before me said, there isn't a favorable language (imo). There are plenty of web frameworks that could give you a "big" hand in creating a CMS. You could create everything from scratch, though that might seem a bit much (unless it is your goal to do just that).

    So, I would do some research on web frameworks. There are gazillions of web frameworks out there, like CakePHP, Zend (PHP), Symfony2 (PHP), Django (written in Python), Flask (Python), Pyramid (Python), Ruby on Rails (written in Ruby), Sinatra (Ruby), and a plethora of other web frameworks to choose from.

    It's more important to determine what you actually want to do, what criteria you've set and then pick what meets those criteria best.
    Maleika E. A. | Rockatee | Twitter | Dribbble



  9. #9
    SitePoint Enthusiast
    Join Date
    Nov 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by PromptSpace View Post
    There is no best programming language. There is only a language that you know best and you are comfortable with. Both languages are easy and powerful, however PHP is being slowly phased out of mainstream development. It's the days of Ruby on Rails and Django (a python derivative) so yeah, learning python might just be a bit better at this point of time.
    this.

    there isnt a 'best' language.
    python is great.
    so is php.
    PHP most definitely isnt being phased out of anything.

    you would do well to learn software design patterns. then the actual language doesnt matter, you can use whatever you need, jQuery, ruby, perl, python, php c, c++, delphi, c#

  10. #10
    SitePoint Enthusiast vincewicks's Avatar
    Join Date
    Jan 2012
    Location
    Brooklyn, NYC
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Python have a big future. It's more quick and flexible than PHP. So, my opinion - Python is the best now
    This site is the go-to place for web designs.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •