473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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?
Dec 15 '20 #1
3 8276
dev7060
633 Expert 512MB
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.
Dec 15 '20 #2
bakertaylor28
45 32bit
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.
Mar 1 '21 #3
Vanisha
25 16bit
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
Feb 16 '23 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Rob | last post by:
i know javascript, vbscript, asp css and alot more and im only 14 i was wondering which is easier to learn php or cgi. any help?
7
by: python | last post by:
Hello folks, I have been programming with Perl then with Python for about 7 years. But I have heard a lot of praise about PHP but I would like to know what is so nice with PHP and if it is worth...
77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
8
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ;...
15
by: Charles | last post by:
Hi folks, I would like to create an email client and organizer like MS Outlook, and I would give myself a year to do this, in the evening & week-ends. I have been looking for information on how...
5
by: Anonieko | last post by:
HttpHandlers - Learn Them. Use Them. Introduction There are many features in ASP.NET that are unfortunately underused. Sometimes a feature gets looked over because it's too complicated....
34
by: pandit | last post by:
hai all, i want to become a good programmer. one of my friends ( named "arnuld", he posts here infrequently), taught me Lisp. so i am not a programming beginner. i have heard these 2 points....
16
by: Raxit | last post by:
Hi, i was reading/learning some hello world program in python. I think its very simillar to Java/C++/C#. What's different (except syntax) ? what can i do easily with python which is not easy...
5
by: Palaksinghla | last post by:
Angular, is the most popular javascript framework. The self proclaimed Super heroic framework is gaining a lot of traction from professionals over the globe. With features like less coding and...
1
by: manchun | last post by:
James Cod took the wrong path to learn SQL and even after two years of his graduation; he is still searching for a job in the IT industry. You must be wondering what is the best way to learn SQL to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.