This webinar lays the foundation for your PHP app. If you have at least one year of PHP experience, this webinar explains these key building blocks for creating and maintaining enterprise-class applications, mobile services, and third-party libraries. It covers: what makes mission-critical PHP different? (including cloud-based solutions); how to maintain your PHP stack; how to ensure code security; and what to do when your system goes down?
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
Keeping up with PHP
1. Building the perfect PHP app for the enterprise
Episode 1: Keeping up with
PHP
Rod Cope
August 31, 2016
2. 2
Series overview
Now: Keeping up with PHP
September 14: Developing apps faster
Top lessons to deliver apps quickly, including CD principles and tools, digging into
app performance, and using frameworks and extensions.
September 28: Resolving problems and high availability
Your reputation as a miracle worker is secure when using these principles to isolate
faults, optimize scale, and synchronize sessions across clusters.
October 12: Optimizing performance
Keep users on your site by learning how to use background jobs and caching,
measure performance, and make data-driven decisions.
10. 10
Example
• Automated free-trial system for web conferencing & collaboration
products
• Challenge: streamline sign-up experience, collect user data, deliver
to CRM, and create host account
• Requirements:
– runs on LAMP (virtualized Linux servers on VMWare)
– five-nines availability, runs on clustered server architecture with
complete failover solution to backup data center
– Centralized monitoring, shared sessions, session clustering,
load balancing, job queueing
• Used: Zend PHP stack, Zend Server, Zend Framework, Zend
Studio IDE
Download case study
11. Poll #1
Do you consider your application
to be enterprise PHP?
a. Yes
b. No
c. Not sure
13. 13
Maintenance activities
Maintaining an up-to-date PHP stack is key to achieving security,
performance, and high availability
PHP drivers frameworks
Other
components
• Services
• PDOs
• etc.
• SQL Server
• MongoDB
• DataStax
• etc.
• Laravel
• Phalcon
• CakePHP
• etc.
Cost = developers + testers + DevOps + sys admins
14. 14
Time spent
*Based on industry average (Forrester research)
Time spent on PHP maintenance
0% 5% 10% 15% 20% 25% 30%
Sys admins
DevOps
Testers
Developers
15. 15
LAPP
WAMP
Best practices
Use fully-tested stacks
Get latest security updates
Verify compatibility with other packages
Ensure technical support
Plan time for upgrades
Don’t forget LAMP!
16. Poll #2
Is your application and deployment
stack up to date?
a. Yes
b. Mostly
c. Partly
d. No
17. 17
Maintaining app security
• Need to keep up with vulnerabilities
– National Vulnerability Database
• Proactively look for flaws and act to mediate them
• Don’t wait for next Heartbleed
19. 19
Is PHP insecure?
• Everyone says it is
• Analysis of secure versions*
– Supported by PHP officially (the latest secure patch with no known vulnerabilities)
– Maintained by a popular, stable Linux distribution
*Jack Skinner, 2015 data
20. 20
The reality
Use the latest
version
OWASP
• PHP is as secure as any other major language
• Anyone can write insecure PHP – it’s not the language’s job, it’s yours
Understand best
practices
Contribute back
21. 21
SQL Injection
• SQL injection (OWASP A1)
– Using SQL input data to execute unauthorized queries on a database
– Results in corruption, data theft, takeover
• Keep untrusted data separate from commands and
queries
• Use input validation
• Use a safe API that avoids the use of the interpreter
and offers a parameterized interface, PDO, or
wrappers for prepared statements
22. 22
Broken authentication/session
management
• Broken authentication and session management (OWASP A2)
– Incorrectly implemented or missing schemes
– Results in user impersonation, data theft, “do anything”
• Use strong authentication and session management
controls
• Apigility with OAuth2
• uLogin
• Avoid using HTTP for login
• Regenerate session ID
23. 23
Cross-site scripting
• Cross-site scripting (OWASP A3)
– Using script code (like JavaScript) to insert data into a server response
without proper validation/escaping
– Results in session hijacking, site defacement, redirects, etc.
• Use input validation and escape output
• Use input white listing to enforce characters, length,
format, etc.
• Use CAPTCHAs
25. 25
Failure costs
Average cost of application downtime
$1.25B to $2.5B
Average cost of a critical application failure per hour
$500K to $1M
Average time to restore production failure
More than 1 hour More than 8 hours
47% 5% IDC DevOps and the cost of downtime, 2014
27. 27
“Break”-ing it down
How do you know? • Monitoring
How do you reproduce?
• Log files
• Code tracing
• Z-Ray
How do you prevent?
• Testing!
• Load balancing
• Job queues
• clustering
How do you minimize downtime? • Support
28. Poll #3
How do you implement enterprise features, such as
clustering, job queuing, and monitoring?
a. We integrate open source packages
b. We write our own
c. We use Zend Server or another commercial
product
d. Don’t know
29. 29
Conclusion
If no one is screaming when it goes down, it’s not enterprise PHP.
So invest in scream prevention.
30. 30
The fastest way to enterprise PHP
Free trial
www.zend.com
• Full, tested, secure PHP stack
• Z-Ray vision deep into your app
• Code tracing
• Job queuing and caching
• Deployment and DevOps
• High availability session clustering
• Backed by support & services
32. 32
Watch on demand
• Watch this webinar on demand
• Read the recap blog to see the results of the
polls and Q&A session
33. 33
Stay tuned
September 14: Developing apps faster
Top lessons to deliver apps quickly, including CD principles and tools, digging
into app performance, and using frameworks and extensions.
September 28: Resolving problems and high availability
Your reputation as a miracle worker is secure when using these principles to
isolate faults, optimize scale, and synchronize sessions across clusters.
October 12: Optimizing performance
Keep users on your site by learning how to use background jobs and caching,
measure performance, and make data-driven decisions.
34. Building the perfect PHP app for the enterprise
Episode 1: Keeping up with
PHP
Rod Cope
August 31, 2016