learn php or python?

Discussion in 'PHP' started by curious will, Feb 27, 2008.

  1. #1
    I have just started learning PHP but I have seen a lot of people bashing the language on their blogs. I also read on digg that PHP was used for the majority of YouTube. That should say alot for the program.. Please see below.

    "The article is a bit misleading, the YouTube frontend which accounts for about 90% of the use of the site (more people watch videos than upload them) is written in PHP. The backend is written in Python. The backend handles uploads and command line access into FFMPEG for screen caps and video conversions.

    You can even see here: http://youtube.com/my_videos.php clearly, that's PHP.

    If you guys want to look at scalability, take a look at Yahoo! They use PHP for almost everything and they're the #1 website online. Even Digg uses PHP....

    I personally use a custom PHP framework for most of the code in my applications. I use a mix of MySQL and PostgreSQL for the database platform, Memcache to soften the load on the database(s), MogileFS to handle file replication/clusters, and either Perl or Python for file uploads, since PHP is absolutely terrible for large file uploads.
    This setup scales well and has worked well for myself and my clients for years."
    what do you think?
     
    curious will, Feb 27, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    People love to hate.

    PHP is just fine, and can do nearly anything you'll need. A lot of big sites are written in PHP... Facebook, Imageshack, last.fm, eBay (partly), etc...

    Python is nice too, Google uses it in some parts. So it's up to you really. If you're only planning to make websites, then I'd go with PHP. But if besides that, you also want to create desktop apps or games in the future, then I'd go with Python.
     
    nico_swd, Feb 27, 2008 IP
  3. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #3
    Haven't stated what it is you want to do with the language after you learn it. Don't base your decision on what people are bashing a language over. Seek out the language that does what you need it to do. If its a job, odds are either one will get you work. PHP more immediate work. Python might would pay more since there are fewer programmers for it.
     
    shallowink, Feb 27, 2008 IP
  4. blacknet

    blacknet Active Member

    Messages:
    709
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    70
    #4
    Without a shadow of a doublt learn PHP, the documentation is second to none, the community is great, you can do almost anything with the extensions; couple it with linux and you've got by far the best web programming language out there.

    Once you learned PHP, then concider a (partial) move to python if you can justify it, python's a language and a half especially when coupled with xul.

    ps: facebook is php aswell, so's stumble and the like.

    ubuntu 6.06 LT, apache 2, php 5.2.4+, mysql 5 - thats the winning combo :)
     
    blacknet, Feb 27, 2008 IP
  5. curious will

    curious will Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks guys.
     
    curious will, Feb 27, 2008 IP
  6. udkl_12_98

    udkl_12_98 Banned

    Messages:
    307
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    PHP is the Best way forward
     
    udkl_12_98, Feb 27, 2008 IP
  7. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #7
    i just say PHP , you can see many websites use it .
     
    mab, Feb 27, 2008 IP
  8. deebong

    deebong Well-Known Member

    Messages:
    1,715
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    138
    #8
    I would just recommend PHP.
     
    deebong, Feb 28, 2008 IP
  9. able

    able Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Different tools for different jobs.

    Python is a multipurpose language, php is web only (anyone that mentions gtk with a straight face is impressive)

    The facebook example of php for web, but python to handle long running ffmpeg requests is a good example of using languages suitable for each task.
     
    able, Feb 28, 2008 IP
  10. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I'm with able,
    PHP and Python are different tools for different jobs.

    Learn PHP if you want to learn web development.
     
    Morishani, Feb 28, 2008 IP
  11. swishman

    swishman Well-Known Member

    Messages:
    1,264
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #11
    Ppppppppppppppphhhhhhhhhhhhhhhhhhhhhhhhppppppppppppppppppppppppp
     
    swishman, Feb 28, 2008 IP
  12. chadhaajay

    chadhaajay Member

    Messages:
    57
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #12
    I'd suggest PHP. Its easy to learn and quite powerful.
     
    chadhaajay, Feb 28, 2008 IP
  13. curious will

    curious will Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thank you all for your input
     
    curious will, Feb 29, 2008 IP
  14. hossampal

    hossampal Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I want the programmer amendments to the script language Python designed
     
    hossampal, Aug 20, 2012 IP
  15. Candan

    Candan Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I'd suggest PHP aswel, it's easier to learn.
     
    Candan, Aug 20, 2012 IP
  16. lemonsquad

    lemonsquad Greenhorn Affiliate Manager

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #16
    PHP all day long
     
    lemonsquad, Aug 21, 2012 IP