473,715 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What are the Pros and Cons of PHP?

xarzu
88 New Member
What are the pros and cons of plain PHP or Classic ASP?

PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with security where you can post in a text box some script and hack into a system.

Can we please discuss some pitfalls or drawbacks to having a website written entirely in PHP or ASP? What does a JavaScript framework or Node.js bring to the table that would otherwise be lacking?

I am just now venturing into a contract where I am tasked with updating and maintaining existing code. All I know right now is that it is written in PHP and Classic ASP. I am in the process of investigating these scripting languages and I want to know what the opinion of other developers are.
Jul 23 '21 #1
5 11131
dev7060
644 Recognized Expert Contributor
PHP is as secure as any other language. The application code is as secure as the developer makes it.

If memory serves me correctly, there is an issue with security where you can post in a text box some script and hack into a system.
Follow the best practices to prevent SQL injections.
Jul 24 '21 #2
TatsianaIsakova
12 New Member
There's nothing wrong with PHP, actually. It still powers the majority of website thanks to its safe, user-friendly, and sophisticated user experience. As for the security issue, you need to select the framework that ensures advanced security functions like Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF), SQL Injection.

Our company gets a lot of PHP 'orders' so I wouldn't say it's losing its popularity to React and such.

In this post, for example, our developers share their take on PHP and its frameworks. You can read it for a more in-depth insight into the technology.
Jul 26 '21 #3
Anna Feferman
1 New Member
PHP as a server-side web development language has evolved from the small open-source project. It was created in 1995 by Rasmus Lerdorf who wrote a few CGI programs and managed to make them work with web forms and databases. He hasn’t aimed to create a new programming language but it turned to become among one of the biggest open-source languages. Anyone can make a contribution to the new release including task deployment, testing, documentation, and sources.

Thanks to its accessibility, PHP has gained popularity among a huge number of developers. It might be a common choice for newcomers, as its learning curve is much easier in comparison with others.

The PHP community has various open-source free libraries, tools and extensions. For example MySQL Extension, it allows developers to create PHP apps that interact with the database while enabling improved statement and transaction support.

In the light of ASP vs PHP comparison, the PHP developers deal with the other type of code – interpreted one that is completely written in C. It allows excellent customization nevertheless that might be the cause for some bugs and poor coding.

Since this server-side language was initially released for web development, it is efficient in communicating and accessing most types of databases. Due to its adaptability and flexibility, developers are not limited in their choice. Moreover, PHP can have support for other services covering different protocols like POP3, HTTP, IMAP, LDAP, etc.

Consequently, being open-sourced turned out to be a great solution for the PHP web development community. They have gained the biggest market share and keep on the constant improvements and regular releases.

The first reason why PHP is good for web development is that this programming language has been initially presented as a web scripting language. It is greatly supported and improved by its own community that consists of more than 5 million PHP developers. The open-source programming language is quite popular among newcomers and has gained the biggest market share. Its supportive community keeps on growing for more than 25 years.

Working with open source has its own advantages and disadvantages. In fact, this language is easy to learn, compatible with different servers, and suitable for various web applications. Another distinction of PHP development is the interpreted code. This type of code is usually executed on the server, later generated into HTML, and only then sent to the user side. Accordingly, the execution time is longer and might get some errors with importing heavy files and lead to slower performance compared to other languages.

On the other side, PHP web development is often chosen for increased scalability. This is accomplished by adding more servers. The overall workload will be distributed between them and can handle more user requests. This approach relies upon the horizontal scalability that differs PHP from ASP.NET.

Having a number of in-built security features, PHP is still considered less secure compared with other web-server programming languages. While obtaining more flexibility in writing the code, engineers have more responsibilitie s to secure it and can’t rely only on the in-build tools.

Lower development and maintenance cost is usually acknowledged as a great benefit. PHP developers have access to all the tools and libraries without any additional fees. Moreover, developers can choose among the different hosting services and have the opportunity to pay less.

This adaptable and flexible programming language can easily meet the primary needs of web development. However, the companies need to outline their needs at first and make sure it corresponds to the set requirements and final goals.
Aug 13 '21 #4
elianawilson
2 New Member
Pros of Using PHP
1. Speed up custom web application development
2. Simplify web application maintenance
3. No need to write additional code
4. Work with databases more efficiently
5. Automate common web development tasks
6. Protect websites from targeted security attacks
7. Perform unit testing efficiently
8. No need to increase web development cost

Cons of Using PHP
1. Programmers need to learn PHP frameworks instead of PHP
2. Quality of PHP frameworks differs
3. Lack of option to modify core behavior
4. Affect Speed and performance of websites
Sep 7 '21 #5
Vanisha
25 New Member
PHP is a widely used server-side programming language that has been around since the mid-1990s. As with any technology, there are pros and cons to using PHP. Here are some of the most notable ones:
Pros:

Easy to learn
Open-source
Large community and ecosystem
Cross-platform compatibility
Fast and efficient

Cons:

Security
Inconsistency
Scalability
Limited support for asynchronous programming
Legacy code

Join PHP Online Training
Feb 15 '23 #6

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

Similar topics

1
2036
by: Ronnie Patton | last post by:
Hello everyone can you help me find some information out about pros and cons using a global.asa in any asp application My co-works are saying its your choice to use one or not based on what the application does. but from what i have always been told and practiced was always use one. What we have is a order entry system for a call center about 200 users call comes in the user places the order customer care looks it up shipping ships it....
0
2382
by: Sniffle | last post by:
Thanks... Say you have a double opt in mailing list, of which the subcriber list is store in the db. Im still somewhat of a newb, so bear with me... are there any pros/cons as to keeping the 'unverified' subscribers in a different table, aside from organization? I did just that, where, when they subscribe, they are put in a temp table, and them moved to the real table once verified (and the temp entry deleted). At the time, I did this...
0
1846
by: Steve | last post by:
We've recently got a new Server in. The server has 16Gb of RAM, 8 cpus etc We now have a choice of sticking with Windows 2000 Advanced Server or going with Windows 2003 Enterprise edition. Besides being able to use more RAM and having to use Service pack 3a in Win 2003 Any pros/cons of both ? Any recommendations ?
112
10331
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please, share your experience in using IDENTITY as PK .
5
7639
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating business components that can be consumed by WebForms, WinForms, mobile devices, etc? Is it even fair to compare the such technologies? - How about for cases when you need to display dynamic elements on the form/grid (as compared to knowing data elements...
5
1821
by: JayCallas | last post by:
I have a requirement where I need to perform a query for position information. But for some types of entries, I need to "expand" the row to include additional position rows. Let me explain with an example: An index is a security that is made up of components where each component has a "weight" or a number of shares. So if I have 1 share of the index, I have X shares of each component. AAPL is an Equity, CSCO is an Equity, SPY is an...
5
2320
by: sinister | last post by:
I'm starting a database/web interface project, using Linux and postgresql. I've programmed in PHP4 in the past, and for this new project am unsure whether to use PHP4 or PHP5. My main concerns are stability and security. What are the pros/cons/issues for PHP4/PHP5 with apache (either 1.3 or 2)? TIA,
1
1569
by: Doogie | last post by:
I'm looking for some good reading material on the pros/cons of using the Session object and was wondering if anyone could point me in the right direction?
62
2906
by: estherschindler | last post by:
This is part of a series examining the strengths and weaknesses of various scripting languages, with particular attention to enterprise (read: big company) use. You Used Python to Write WHAT? Python is a powerful, easy-to-use scripting language suitable for use in the enterprise, although it is not right for absolutely every use. Python expert Martin Aspeli identifies when Python is the right choice, and when another language might be a...
3
1860
by: ziycon | last post by:
What would be the pros/cons of turning off error warnings in the website pages like below? What are peoples opinions on this approach? <?php error_reporting(0); ?>
0
8817
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8715
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9322
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7966
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5964
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4472
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.