際際滷

際際滷Share a Scribd company logo
PHP Reboot
PHP Reboot PHPReboot.com 1
PHP Myth
Special thanks to
PHP Reboot PHPReboot.com 2
Let me introduce myself
PHP Reboot PHPReboot.com 3
Name: Kapil Sharma (Not comedian)
Working in web technologies since 2004.
Current: Tech lead at Ansh Systems.
Hobbies: Programming, Dreaming.
Vision:
PHP Myth
What is Myth?
PHP Reboot PHPReboot.com 4
A traditional story, especially one concerning the early
history of a people or explaining a natural or social
phenomenon, and typically involving supernatural
beings or events.
A widely held but false belief or idea.
PHP Myth
Common PHP Myths
PHP Reboot PHPReboot.com 5
 PHP is crappy and there are lot of crappy PHP Programs.
 PHP is good only for web development.
 PHP is interpreted language so it is slow.
 PHP mix business and presentation logic.
 PHP is insecure.
 Development in PHP is slow.
 You cant scale PHP applications well.
 You need to buy from Zend to make PHP work best.
 PHP is not good at OOPs.
 PHP is not good/sufficient for serious programmers.
You are BAD
PHP Reboot PHPReboot.com 5
Why explanation
PHP Reboot PHPReboot.com 6
 As PHP developer, we ideally do not need to give any
explanation.
 However a student learning PHP or new developers might feel
bad about them. Explanation is needed for them that they did
not made any mistake by selecting PHP.
 Explanation is needed to those stake holders who selected
PHP as language for their product.
 Explanation is needed to experienced PHP developers/
architects to remind them some of the possible mistakes that
might be possible in PHP.
What is Programming Language?
And who we are?
PHP Reboot PHPReboot.com 7
 A programming language is just a tool to fulfill business
requirements.
 As programmer (regardless of programming language) your
task is to solve business problem.
 As programmer, we solve business problems by using tool
(programming language) that fit best to solve problem.
 If other language fit best to solve a specific problem, I
recommend to go ahead and use that language.
 So as programmer, defend PHP on valid points but do not
offend any other language.
PHP is crappy and there are lot of crappy
PHP Programs
PHP Reboot PHPReboot.com 8
 Before we answer this myth, we must know PHP History.
 Development started in 1994 by Rasmus Lerdorf for his
Personal Home Page Tools.
 1995: Open Sourced
 April 1996: PHP FI (or PHP 2)
 1997: Zeev Surakshi and Andi Gutmans begin rewrite.
 1998: PHP 3. Renamed to PHP: Hypertext Preprocessor
 1999: PHP 4 with Zend Engine.
 July 2004: PHP 5
 June 2009: PHP 5.3
 March 2012: PHP 5.4
 June 2013 PHP 5.5
PHP is crappy and there are lot of crappy
PHP Programs
PHP Reboot PHPReboot.com 9
 Disadvantages of being old language.
 Lot of old books and old tutorial available on internet.
 That old tutorial was correct at the time of writing but not
now. However students and new developers are still learning
from outdated tutorial.
 This is the biggest concern for world wide PHP community. Our
new members are learning wrong things.
 Phptherightway.com
 Phpmentoring.org
 Blogs phpdeveloper.org
 PHP-FIG
 PHPReboot.com (Pune local PHP Community)
PHP is crappy and there are lot of crappy
PHP Programs
PHP Reboot PHPReboot.com 9
 Lets divide this myth in two parts:
1. Is PHP Crappy?
 Depends on what is your definitions of Crappy.
 Most of myths we discuss, falls under category of crappy.
 To answer if PHP is crappy or not, lets go through remaining
myths.
2. Is there lot of crappy PHP Programs?
Is there lot of crappy PHP Programs?
PHP Reboot PHPReboot.com 9
 Unfortunately Yes.
Is there lot of crappy PHP Programs?
PHP Reboot PHPReboot.com 9
 Unfortunately Yes.
Reasons:
 PHP is very simple and easy to learn.
 That means; There are lot of amateur programmers.
 Small companies, freelancer. (Lack of experience)
Solution:
 Conferences at global levels.
 Free resources on internet.
 Technical blogs, Twitter, Linked In.
 Local meetups.
PHP is good only for web development.
PHP Reboot PHPReboot.com 9
 This is fact but when PHP claimed otherwise.
 PHP first full-form was Personal Home Page.
 Is it a negative point? Not for me.
 PHP does what it is supposed to do.
 If you need desktop or mobile or embedded app or anything
else, PHP is not for you.
PHP is interpreted language so slow.
PHP Reboot PHPReboot.com 9
 Fact: PHP is interpreted language and interpreted language are
slower then compiled language.
 Myth: PHP is slow.
 PHP was designed to be fast. With advanced technologies,
execution time gap is reducing.
 Again execution speed (difference of few milliseconds) matters
for enterprise apps.
 For enterprise apps, when you really need speed, PHP have
many solutions to scale up your application.
PHP mix business and presentation logic
PHP Reboot PHPReboot.com 9
 Myth
 Yes it is possible to mix business and presentation logic in PHP
but it is possible in other languages too.
 Even though it is possible, PHP do not recommend that. PHP
fully support MVC architecture and recommend to use MVC
architecture.
 So finally it depends on Programmer if he/she mix business
logic and presentation logic.
Solution:
 We need to educate students and new programmers about it
and PHP community is doing that frequently.
PHP is insecure
PHP Reboot PHPReboot.com 9
 This is one of the biggest myth about PHP.
 First understand, no thing is 100% secure on internet,
regardless of programming language.
 PHP provide all the tools to write secure web applications; as
secure as possible in any other language.
 So why there is security myth about PHP?
 PHP did some mistakes in the past, which is not valid today.
 One of biggest mistake of PHP was register globals.
 Again this was not security vulnerability at PHPs end but a
potential risk which allow developers to write insecure
program.
PHP is insecure
PHP Reboot PHPReboot.com 9
If ( isAdminUser() ) {
$admin = true;
} if ($admin ) {
//load admin panel
}
Consider following code
PHP is insecure
PHP Reboot PHPReboot.com 9
If ( isAdminUser() ) {
$admin = true;
} if ($admin ) {
//load admin panel
}
Consider following code
Is there any issue with this code?
NEVER TAKE ANY DECISION BASED ON VARIABLE WHICH MIGHT
NOT BE INITIALIZED.
http://domain.com/page.php?admin=1
Development in PHP is slow
PHP Reboot PHPReboot.com 9
Myth
I say that myth but dont know the source. Just a guess: Ruby on
Rails or DJango (Framework in Python).
Is that a fair comparison?
Do not compare framework with programming language.
PHP too have many frameworks, compare with them.
One of the PHP strength is, you can develop applications in PHP
very fast.
Obviously you need experienced developers.
Cant scale PHP application well
PHP Reboot PHPReboot.com 9
Need to buy from Zend
PHP Reboot PHPReboot.com 9
Myth
Zend is a company behind PHP.
Like any open source company, they provide few solution to
earn.
Some major Zend offerings are:
OP Code Cache.
Support
IDE (Zend Studio)
Zend Guard (Obfuscation)
Zend have products but they do not dominate market.
Not good at OOPs
PHP Reboot PHPReboot.com 9
Myth
OOPs was introduced in PHP with PHP 5.0 in 2004
Yes OOPs support in PHP was not good at that time.
By PHP 5.3, PHP developed very good OOPs support
PHP 5.4 support traits, not still supported in many OOPs
languages.
Not good for serious programmers
PHP Reboot PHPReboot.com 9
Myth
PHP contributed maximum number of web based open source
projects.
Some of them are dominating in their respective fileds like:
Joomla, Wordpress, Media wiki, Megento, SugarCRM (Just to
name few)
In my office, I work with many serious PHP programmers and
communicate with many over internet.
This is not a myth but rubbish.
Is everything right with PHP?
PHP Reboot PHPReboot.com 9
Do not shy, answer is NO
No thing is perfect in the world.
Not do PHP.
Yes there are quite a few issues with PHP.
But what is most important
PHP do what it is
supposed to do and do it
very well.
If someone say PHP is bad
PHP Reboot PHPReboot.com 9
Dont
be
like
that
If someone say PHP is bad
PHP Reboot PHPReboot.com 9
Lets Debate
Real question
PHP Reboot PHPReboot.com 9
Which programming language is better?
How to become a better programmer?
How to become better programmer?
PHP Reboot PHPReboot.com 9
How to become better programmer?
PHP Reboot PHPReboot.com 9
Learning, study and most important; code.
Share knowledge.
Contribute to Open Source.
Communicate with other developers.
Read blogs.
Remain updated with technology.
Use twitter more then facebook.
PHP Reboot
PHP Reboot PHPReboot.com 9
PHP Reboot is an attempt to share news and new features of
PHP and related technologies.
My idea of doing this by regular meet-up like this one.
Problem: We cant hold/attend regular meetups.
Another way: share articles, news and tutorials through free
PHP Reboot Magazine and blogs.
Thank you
PHP Reboot PHPReboot.com 9
Contact information
Website: Phpreboot.com
Twitter: @phpreboot
Facebook: www.facebook.com/phreboot
Email: phpreboot@gmail.com
Mailing list: PHPReboot-list@meetup.com

More Related Content

What's hot (16)

Learn C Language
Learn C LanguageLearn C Language
Learn C Language
Kindle World..!
Php tutorial
Php tutorialPhp tutorial
Php tutorial
Niit
Ph pin hindi
Ph pin hindiPh pin hindi
Ph pin hindi
Chand Rook
Cp pin hindi
Cp pin hindiCp pin hindi
Cp pin hindi
Chand Rook
C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it security
CESAR A. RUIZ C
Python
PythonPython
Python
Dr. SURBHI SAROHA
Continuous Improvement in PHP projects
Continuous Improvement in PHP projectsContinuous Improvement in PHP projects
Continuous Improvement in PHP projects
Mayflower GmbH
Mastering Regex in Perl
Mastering Regex in PerlMastering Regex in Perl
Mastering Regex in Perl
Edureka!
Php7 tutorial
Php7 tutorialPhp7 tutorial
Php7 tutorial
Ashoka Vanjare
Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
Ethan's Tech
The growing trend of internet advertising Mobile Alabama
The growing trend of internet advertising Mobile Alabama The growing trend of internet advertising Mobile Alabama
The growing trend of internet advertising Mobile Alabama
Amelie Warren
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
HarikaReddy115
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi ppt
mark-asoi
The Beneficial Effects of Great Chamomile Tea
The Beneficial Effects of Great Chamomile TeaThe Beneficial Effects of Great Chamomile Tea
The Beneficial Effects of Great Chamomile Tea
Berneice Hernandez
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Ask the Experts: SDL Trados live Q+A webinar  for freelance translatorsAsk the Experts: SDL Trados live Q+A webinar  for freelance translators
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Paul Filkin
The Ring programming language version 1.9 book - Part 97 of 210
The Ring programming language version 1.9 book - Part 97 of 210The Ring programming language version 1.9 book - Part 97 of 210
The Ring programming language version 1.9 book - Part 97 of 210
Mahmoud Samir Fayed
Php tutorial
Php tutorialPhp tutorial
Php tutorial
Niit
Ph pin hindi
Ph pin hindiPh pin hindi
Ph pin hindi
Chand Rook
Cp pin hindi
Cp pin hindiCp pin hindi
Cp pin hindi
Chand Rook
C plus plus for hackers it security
C plus plus for hackers it securityC plus plus for hackers it security
C plus plus for hackers it security
CESAR A. RUIZ C
Continuous Improvement in PHP projects
Continuous Improvement in PHP projectsContinuous Improvement in PHP projects
Continuous Improvement in PHP projects
Mayflower GmbH
Mastering Regex in Perl
Mastering Regex in PerlMastering Regex in Perl
Mastering Regex in Perl
Edureka!
Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
Ethan's Tech
The growing trend of internet advertising Mobile Alabama
The growing trend of internet advertising Mobile Alabama The growing trend of internet advertising Mobile Alabama
The growing trend of internet advertising Mobile Alabama
Amelie Warren
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi ppt
mark-asoi
The Beneficial Effects of Great Chamomile Tea
The Beneficial Effects of Great Chamomile TeaThe Beneficial Effects of Great Chamomile Tea
The Beneficial Effects of Great Chamomile Tea
Berneice Hernandez
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Ask the Experts: SDL Trados live Q+A webinar  for freelance translatorsAsk the Experts: SDL Trados live Q+A webinar  for freelance translators
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Paul Filkin
The Ring programming language version 1.9 book - Part 97 of 210
The Ring programming language version 1.9 book - Part 97 of 210The Ring programming language version 1.9 book - Part 97 of 210
The Ring programming language version 1.9 book - Part 97 of 210
Mahmoud Samir Fayed

Similar to Php myths (20)

PHP Training In Chandigar1.docx
PHP Training In Chandigar1.docxPHP Training In Chandigar1.docx
PHP Training In Chandigar1.docx
Excellence Academy
Learn to build with php
Learn to build with phpLearn to build with php
Learn to build with php
fernando valenzuela hern叩ndez
Why Learn PHP Programming?
Why Learn PHP Programming?Why Learn PHP Programming?
Why Learn PHP Programming?
XtreemHeights
PHP Training in Noida
PHP Training in NoidaPHP Training in Noida
PHP Training in Noida
Raj Sharma
How PHP Has Emerged?
How PHP Has Emerged?How PHP Has Emerged?
How PHP Has Emerged?
EffOne_Technologies
Top Reasons Why PHP Will Conquer The World
Top Reasons Why PHP Will Conquer The WorldTop Reasons Why PHP Will Conquer The World
Top Reasons Why PHP Will Conquer The World
Grey Matter India Technologies PVT LTD
Top 100 PHP Questions and Answers
Top 100 PHP Questions and AnswersTop 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
Why do businesses choose PHP as their development language?
Why do businesses choose PHP as their development language?Why do businesses choose PHP as their development language?
Why do businesses choose PHP as their development language?
AResourcePool
Php is best programming language
Php is best programming languagePhp is best programming language
Php is best programming language
https://cilected.com/
Php is best programming language converted
Php is best programming language convertedPhp is best programming language converted
Php is best programming language converted
https://cilected.com/
Php vs asp.net
Php vs asp.netPhp vs asp.net
Php vs asp.net
Marie Weaver
PHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor IntroductionPHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor Introduction
Oto Brglez
Orange scrum project management tool journey, with the evolution of php
Orange scrum  project management tool journey, with the evolution of phpOrange scrum  project management tool journey, with the evolution of php
Orange scrum project management tool journey, with the evolution of php
Andolasoft Inc
All you need to know about latest php version 7.4
All you need to know about latest php version 7.4All you need to know about latest php version 7.4
All you need to know about latest php version 7.4
Semidot Infotech
Top Reasons to Choose PHP for Your Web App Development
Top Reasons to Choose PHP for Your Web App DevelopmentTop Reasons to Choose PHP for Your Web App Development
Top Reasons to Choose PHP for Your Web App Development
Rani Aswal
Latest Features of PHP
Latest Features of PHPLatest Features of PHP
Latest Features of PHP
Emma Thompson
Php vs. asp.net how to choose the right one
Php vs. asp.net  how to choose the right one Php vs. asp.net  how to choose the right one
Php vs. asp.net how to choose the right one
Concetto Labs
Advanced php for web professionals
Advanced php for web professionalsAdvanced php for web professionals
Advanced php for web professionals
Sudha Hari Tech Solution Pvt ltd
Php tutorial
Php tutorialPhp tutorial
Php tutorial
sushil kumar
Php tutorial
Php tutorialPhp tutorial
Php tutorial
Nguy畛n Ho
PHP Training In Chandigar1.docx
PHP Training In Chandigar1.docxPHP Training In Chandigar1.docx
PHP Training In Chandigar1.docx
Excellence Academy
Why Learn PHP Programming?
Why Learn PHP Programming?Why Learn PHP Programming?
Why Learn PHP Programming?
XtreemHeights
PHP Training in Noida
PHP Training in NoidaPHP Training in Noida
PHP Training in Noida
Raj Sharma
Top 100 PHP Questions and Answers
Top 100 PHP Questions and AnswersTop 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
Why do businesses choose PHP as their development language?
Why do businesses choose PHP as their development language?Why do businesses choose PHP as their development language?
Why do businesses choose PHP as their development language?
AResourcePool
Php is best programming language converted
Php is best programming language convertedPhp is best programming language converted
Php is best programming language converted
https://cilected.com/
PHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor IntroductionPHP: Hypertext Preprocessor Introduction
PHP: Hypertext Preprocessor Introduction
Oto Brglez
Orange scrum project management tool journey, with the evolution of php
Orange scrum  project management tool journey, with the evolution of phpOrange scrum  project management tool journey, with the evolution of php
Orange scrum project management tool journey, with the evolution of php
Andolasoft Inc
All you need to know about latest php version 7.4
All you need to know about latest php version 7.4All you need to know about latest php version 7.4
All you need to know about latest php version 7.4
Semidot Infotech
Top Reasons to Choose PHP for Your Web App Development
Top Reasons to Choose PHP for Your Web App DevelopmentTop Reasons to Choose PHP for Your Web App Development
Top Reasons to Choose PHP for Your Web App Development
Rani Aswal
Latest Features of PHP
Latest Features of PHPLatest Features of PHP
Latest Features of PHP
Emma Thompson
Php vs. asp.net how to choose the right one
Php vs. asp.net  how to choose the right one Php vs. asp.net  how to choose the right one
Php vs. asp.net how to choose the right one
Concetto Labs

Recently uploaded (20)

Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdfCybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Joe Shenouda
Threat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community DayThreat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community Day
Teri Radichel
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic RelationshipTrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-WorldAll-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
Safe Software
APAC Solutions Challenge Info Session.pdf
APAC Solutions Challenge Info Session.pdfAPAC Solutions Challenge Info Session.pdf
APAC Solutions Challenge Info Session.pdf
GDG on Campus Monash
ScotSecure Cyber Security Summit 2025 Edinburgh
ScotSecure Cyber Security Summit 2025 EdinburghScotSecure Cyber Security Summit 2025 Edinburgh
ScotSecure Cyber Security Summit 2025 Edinburgh
Ray Bugg
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAREXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
DianaGray10
Microsoft Digital Defense Report 2024 .pdf
Microsoft Digital Defense Report 2024 .pdfMicrosoft Digital Defense Report 2024 .pdf
Microsoft Digital Defense Report 2024 .pdf
Abhishek Agarwal
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
David Brossard
Next.js Development: The Ultimate Solution for High-Performance Web Apps
Next.js Development: The Ultimate Solution for High-Performance Web AppsNext.js Development: The Ultimate Solution for High-Performance Web Apps
Next.js Development: The Ultimate Solution for High-Performance Web Apps
rwinfotech31
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and FeastSmarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Zilliz
Human Centered Design By Gnanasambandham
Human Centered Design By GnanasambandhamHuman Centered Design By Gnanasambandham
Human Centered Design By Gnanasambandham
Gnanasambandham Anbazhagan CSP, CSM, CSPO
Top Tips to Get Your Data AI-Ready
Top Tips to Get Your Data AI-Ready   Top Tips to Get Your Data AI-Ready
Top Tips to Get Your Data AI-Ready
Precisely
Building High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdfBuilding High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdf
Rafael Burity
Migrating to the Isolated worker process in Azure Functions .pptx
Migrating to the Isolated worker process in Azure Functions .pptxMigrating to the Isolated worker process in Azure Functions .pptx
Migrating to the Isolated worker process in Azure Functions .pptx
Callon Campbell
San Francisco Atlassian ACE - Mar 27 2025.pdf
San Francisco Atlassian ACE - Mar 27 2025.pdfSan Francisco Atlassian ACE - Mar 27 2025.pdf
San Francisco Atlassian ACE - Mar 27 2025.pdf
Matt Doar
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMARSTRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
Getting the Best of TrueDEM April News & Updates
Getting the Best of TrueDEM  April News & UpdatesGetting the Best of TrueDEM  April News & Updates
Getting the Best of TrueDEM April News & Updates
panagenda
Recruiting Tech: A Look at Why AI is Actually OG
Recruiting Tech: A Look at Why AI is Actually OGRecruiting Tech: A Look at Why AI is Actually OG
Recruiting Tech: A Look at Why AI is Actually OG
Matt Charney
Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdfCybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Cybersecurity-Threat-Landscape-March-31-April-7-2025.pdf
Joe Shenouda
Threat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community DayThreat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community Day
Teri Radichel
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic RelationshipTrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-WorldAll-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-World
Safe Software
APAC Solutions Challenge Info Session.pdf
APAC Solutions Challenge Info Session.pdfAPAC Solutions Challenge Info Session.pdf
APAC Solutions Challenge Info Session.pdf
GDG on Campus Monash
ScotSecure Cyber Security Summit 2025 Edinburgh
ScotSecure Cyber Security Summit 2025 EdinburghScotSecure Cyber Security Summit 2025 Edinburgh
ScotSecure Cyber Security Summit 2025 Edinburgh
Ray Bugg
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAREXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
EXCEPTION HANDLING IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
SAP Automation with UiPath: Solution Accelerators and Best Practices - Part 6...
DianaGray10
Microsoft Digital Defense Report 2024 .pdf
Microsoft Digital Defense Report 2024 .pdfMicrosoft Digital Defense Report 2024 .pdf
Microsoft Digital Defense Report 2024 .pdf
Abhishek Agarwal
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
AuthZEN The OpenID Connect of Authorization - Gartner IAM EMEA 2025
David Brossard
Next.js Development: The Ultimate Solution for High-Performance Web Apps
Next.js Development: The Ultimate Solution for High-Performance Web AppsNext.js Development: The Ultimate Solution for High-Performance Web Apps
Next.js Development: The Ultimate Solution for High-Performance Web Apps
rwinfotech31
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and FeastSmarter RAG Pipelines: Scaling Search with Milvus and Feast
Smarter RAG Pipelines: Scaling Search with Milvus and Feast
Zilliz
Top Tips to Get Your Data AI-Ready
Top Tips to Get Your Data AI-Ready   Top Tips to Get Your Data AI-Ready
Top Tips to Get Your Data AI-Ready
Precisely
Building High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdfBuilding High-Impact Teams Beyond the Product Triad.pdf
Building High-Impact Teams Beyond the Product Triad.pdf
Rafael Burity
Migrating to the Isolated worker process in Azure Functions .pptx
Migrating to the Isolated worker process in Azure Functions .pptxMigrating to the Isolated worker process in Azure Functions .pptx
Migrating to the Isolated worker process in Azure Functions .pptx
Callon Campbell
San Francisco Atlassian ACE - Mar 27 2025.pdf
San Francisco Atlassian ACE - Mar 27 2025.pdfSan Francisco Atlassian ACE - Mar 27 2025.pdf
San Francisco Atlassian ACE - Mar 27 2025.pdf
Matt Doar
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMARSTRING FUNCTIONS IN JAVA BY N SARATH KUMAR
STRING FUNCTIONS IN JAVA BY N SARATH KUMAR
Sarathkumar Narsupalli
Getting the Best of TrueDEM April News & Updates
Getting the Best of TrueDEM  April News & UpdatesGetting the Best of TrueDEM  April News & Updates
Getting the Best of TrueDEM April News & Updates
panagenda
Recruiting Tech: A Look at Why AI is Actually OG
Recruiting Tech: A Look at Why AI is Actually OGRecruiting Tech: A Look at Why AI is Actually OG
Recruiting Tech: A Look at Why AI is Actually OG
Matt Charney

Php myths

  • 1. PHP Reboot PHP Reboot PHPReboot.com 1 PHP Myth
  • 2. Special thanks to PHP Reboot PHPReboot.com 2
  • 3. Let me introduce myself PHP Reboot PHPReboot.com 3 Name: Kapil Sharma (Not comedian) Working in web technologies since 2004. Current: Tech lead at Ansh Systems. Hobbies: Programming, Dreaming. Vision:
  • 4. PHP Myth What is Myth? PHP Reboot PHPReboot.com 4 A traditional story, especially one concerning the early history of a people or explaining a natural or social phenomenon, and typically involving supernatural beings or events. A widely held but false belief or idea.
  • 5. PHP Myth Common PHP Myths PHP Reboot PHPReboot.com 5 PHP is crappy and there are lot of crappy PHP Programs. PHP is good only for web development. PHP is interpreted language so it is slow. PHP mix business and presentation logic. PHP is insecure. Development in PHP is slow. You cant scale PHP applications well. You need to buy from Zend to make PHP work best. PHP is not good at OOPs. PHP is not good/sufficient for serious programmers.
  • 6. You are BAD PHP Reboot PHPReboot.com 5
  • 7. Why explanation PHP Reboot PHPReboot.com 6 As PHP developer, we ideally do not need to give any explanation. However a student learning PHP or new developers might feel bad about them. Explanation is needed for them that they did not made any mistake by selecting PHP. Explanation is needed to those stake holders who selected PHP as language for their product. Explanation is needed to experienced PHP developers/ architects to remind them some of the possible mistakes that might be possible in PHP.
  • 8. What is Programming Language? And who we are? PHP Reboot PHPReboot.com 7 A programming language is just a tool to fulfill business requirements. As programmer (regardless of programming language) your task is to solve business problem. As programmer, we solve business problems by using tool (programming language) that fit best to solve problem. If other language fit best to solve a specific problem, I recommend to go ahead and use that language. So as programmer, defend PHP on valid points but do not offend any other language.
  • 9. PHP is crappy and there are lot of crappy PHP Programs PHP Reboot PHPReboot.com 8 Before we answer this myth, we must know PHP History. Development started in 1994 by Rasmus Lerdorf for his Personal Home Page Tools. 1995: Open Sourced April 1996: PHP FI (or PHP 2) 1997: Zeev Surakshi and Andi Gutmans begin rewrite. 1998: PHP 3. Renamed to PHP: Hypertext Preprocessor 1999: PHP 4 with Zend Engine. July 2004: PHP 5 June 2009: PHP 5.3 March 2012: PHP 5.4 June 2013 PHP 5.5
  • 10. PHP is crappy and there are lot of crappy PHP Programs PHP Reboot PHPReboot.com 9 Disadvantages of being old language. Lot of old books and old tutorial available on internet. That old tutorial was correct at the time of writing but not now. However students and new developers are still learning from outdated tutorial. This is the biggest concern for world wide PHP community. Our new members are learning wrong things. Phptherightway.com Phpmentoring.org Blogs phpdeveloper.org PHP-FIG PHPReboot.com (Pune local PHP Community)
  • 11. PHP is crappy and there are lot of crappy PHP Programs PHP Reboot PHPReboot.com 9 Lets divide this myth in two parts: 1. Is PHP Crappy? Depends on what is your definitions of Crappy. Most of myths we discuss, falls under category of crappy. To answer if PHP is crappy or not, lets go through remaining myths. 2. Is there lot of crappy PHP Programs?
  • 12. Is there lot of crappy PHP Programs? PHP Reboot PHPReboot.com 9 Unfortunately Yes.
  • 13. Is there lot of crappy PHP Programs? PHP Reboot PHPReboot.com 9 Unfortunately Yes. Reasons: PHP is very simple and easy to learn. That means; There are lot of amateur programmers. Small companies, freelancer. (Lack of experience) Solution: Conferences at global levels. Free resources on internet. Technical blogs, Twitter, Linked In. Local meetups.
  • 14. PHP is good only for web development. PHP Reboot PHPReboot.com 9 This is fact but when PHP claimed otherwise. PHP first full-form was Personal Home Page. Is it a negative point? Not for me. PHP does what it is supposed to do. If you need desktop or mobile or embedded app or anything else, PHP is not for you.
  • 15. PHP is interpreted language so slow. PHP Reboot PHPReboot.com 9 Fact: PHP is interpreted language and interpreted language are slower then compiled language. Myth: PHP is slow. PHP was designed to be fast. With advanced technologies, execution time gap is reducing. Again execution speed (difference of few milliseconds) matters for enterprise apps. For enterprise apps, when you really need speed, PHP have many solutions to scale up your application.
  • 16. PHP mix business and presentation logic PHP Reboot PHPReboot.com 9 Myth Yes it is possible to mix business and presentation logic in PHP but it is possible in other languages too. Even though it is possible, PHP do not recommend that. PHP fully support MVC architecture and recommend to use MVC architecture. So finally it depends on Programmer if he/she mix business logic and presentation logic. Solution: We need to educate students and new programmers about it and PHP community is doing that frequently.
  • 17. PHP is insecure PHP Reboot PHPReboot.com 9 This is one of the biggest myth about PHP. First understand, no thing is 100% secure on internet, regardless of programming language. PHP provide all the tools to write secure web applications; as secure as possible in any other language. So why there is security myth about PHP? PHP did some mistakes in the past, which is not valid today. One of biggest mistake of PHP was register globals. Again this was not security vulnerability at PHPs end but a potential risk which allow developers to write insecure program.
  • 18. PHP is insecure PHP Reboot PHPReboot.com 9 If ( isAdminUser() ) { $admin = true; } if ($admin ) { //load admin panel } Consider following code
  • 19. PHP is insecure PHP Reboot PHPReboot.com 9 If ( isAdminUser() ) { $admin = true; } if ($admin ) { //load admin panel } Consider following code Is there any issue with this code? NEVER TAKE ANY DECISION BASED ON VARIABLE WHICH MIGHT NOT BE INITIALIZED. http://domain.com/page.php?admin=1
  • 20. Development in PHP is slow PHP Reboot PHPReboot.com 9 Myth I say that myth but dont know the source. Just a guess: Ruby on Rails or DJango (Framework in Python). Is that a fair comparison? Do not compare framework with programming language. PHP too have many frameworks, compare with them. One of the PHP strength is, you can develop applications in PHP very fast. Obviously you need experienced developers.
  • 21. Cant scale PHP application well PHP Reboot PHPReboot.com 9
  • 22. Need to buy from Zend PHP Reboot PHPReboot.com 9 Myth Zend is a company behind PHP. Like any open source company, they provide few solution to earn. Some major Zend offerings are: OP Code Cache. Support IDE (Zend Studio) Zend Guard (Obfuscation) Zend have products but they do not dominate market.
  • 23. Not good at OOPs PHP Reboot PHPReboot.com 9 Myth OOPs was introduced in PHP with PHP 5.0 in 2004 Yes OOPs support in PHP was not good at that time. By PHP 5.3, PHP developed very good OOPs support PHP 5.4 support traits, not still supported in many OOPs languages.
  • 24. Not good for serious programmers PHP Reboot PHPReboot.com 9 Myth PHP contributed maximum number of web based open source projects. Some of them are dominating in their respective fileds like: Joomla, Wordpress, Media wiki, Megento, SugarCRM (Just to name few) In my office, I work with many serious PHP programmers and communicate with many over internet. This is not a myth but rubbish.
  • 25. Is everything right with PHP? PHP Reboot PHPReboot.com 9 Do not shy, answer is NO No thing is perfect in the world. Not do PHP. Yes there are quite a few issues with PHP. But what is most important PHP do what it is supposed to do and do it very well.
  • 26. If someone say PHP is bad PHP Reboot PHPReboot.com 9 Dont be like that
  • 27. If someone say PHP is bad PHP Reboot PHPReboot.com 9 Lets Debate
  • 28. Real question PHP Reboot PHPReboot.com 9 Which programming language is better? How to become a better programmer?
  • 29. How to become better programmer? PHP Reboot PHPReboot.com 9
  • 30. How to become better programmer? PHP Reboot PHPReboot.com 9 Learning, study and most important; code. Share knowledge. Contribute to Open Source. Communicate with other developers. Read blogs. Remain updated with technology. Use twitter more then facebook.
  • 31. PHP Reboot PHP Reboot PHPReboot.com 9 PHP Reboot is an attempt to share news and new features of PHP and related technologies. My idea of doing this by regular meet-up like this one. Problem: We cant hold/attend regular meetups. Another way: share articles, news and tutorials through free PHP Reboot Magazine and blogs.
  • 32. Thank you PHP Reboot PHPReboot.com 9 Contact information Website: Phpreboot.com Twitter: @phpreboot Facebook: www.facebook.com/phreboot Email: phpreboot@gmail.com Mailing list: PHPReboot-list@meetup.com