Reasons to Learn PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • narutikli64
    New Member
    • Dec 2020
    • 1

    Reasons to Learn PHP?

    Hi everyone,

    I'm relatively new to web development. I know JavaScript and work primarily with JavaScript frameworks - Vue, Angular, Node/Express, and so forth.

    I'm wondering if it would be worth it to learn PHP and at least one PHP framework like Laravel. Is there any advantage to using PHP? Any major differences in capabilities between PHP and JavaScript?

    I'm just wondering because I know many freelancers do a lot of their work with sites like WordPress, Shopify, etc., and that these run on PHP. At the same time, I've had coworkers mention that PHP is slowly on its way out.

    So my question is - are there still good reasons to learn PHP?
    Last edited by Niheel; Dec 17 '20, 09:59 PM.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    Is there any advantage to using PHP? Any major differences in capabilities between PHP and JavaScript?
    So my question is - are there still good reasons to learn PHP?
    In my opinion, this would depend on the application and the situation itself. More like a 'vs battle' to make a selection. PHP is simple and is supported by many hosting services. One has to know PHP to be able to work with the things powered by PHP such as WordPress and Drupal. It can be considered a good choice for content-driven websites. On the other hand, the js runtime node is asynchronous and much faster than PHP; hence more viable. But it may require a VPS with ssh access which could add up to the hosting costs.

    Comment

    • bakertaylor28
      New Member
      • Feb 2021
      • 45

      #3
      At the same time, I've had coworkers mention that PHP is slowly on its way out.
      Simply put, NO, its not. PHP is like half the internet, with several BIG websites being run on PHP. (Facebook and Wikipedia are notable examples.)The major alternative to php is ASP (which is proprietary being the reason it hasn't really taken off). Things like GO, Perl, C#, Ruby, C++, etc. are much tougher to learn and tend to have much more difficult syntax, and therefore can be problematic to learn well enough for the average programmer to be able to deploy it efficiently. Also, some of these have inherent security issues. (For example C-derived languages tend to produce more security issues than what it's worth at times.)

      Any major differences in capabilities between PHP and JavaScript?
      The major disadvantage to JavaScript is that the client can read all of your code (because while you can obfuscate JavaScript, its not a complete solution, and you can't use things like .htaccess to hide the code as includes), and can even "block" your code from executing- because JavaScript is client-side not server-side. Also JavaScript is particularly prone to being used maliciously, as was seen in operation Torpedo, for example.

      Comment

      • Vanisha
        New Member
        • Jan 2023
        • 26

        #4
        There are several reasons why you might want to learn PHP:

        Popularity: PHP is one of the most widely used programming languages on the web. It powers popular websites like Facebook, Wikipedia, and WordPress.

        Versatility: PHP can be used for a variety of purposes, including web development, server-side scripting, and command-line scripting.

        Easy to learn: PHP is a relatively easy language to learn, especially if you have prior programming experience. The syntax is simple and easy to read, and there are plenty of resources available online to help you get started.

        Open source: PHP is an open source language, which means that it is free to use and modify. This makes it an accessible option for individuals and businesses with limited budgets.

        Also do PHP training in Delhi

        Comment

        Working...