Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Learn PHP 7 (eBook)

Object Oriented Modular Programming using HTML5, CSS3, JavaScript, XML, JSON, and MySQL

(Autor)

eBook Download: PDF
2015 | 1st ed.
XIX, 294 Seiten
Apress (Verlag)
978-1-4842-1730-6 (ISBN)

Lese- und Medienproben

Learn PHP 7 - Steve Prettyman
Systemvoraussetzungen
46,99 inkl. MwSt
(CHF 45,90)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
This new first to market book on PHP 7 introduces writing solid, secure, object oriented code in the new PHP 7, carfully presented in a well-paced clear fashion. Programming examples take advantage of the newest PHP features, including enhanced password encryption using password_hash. This book provides 'learn by doing' providing the reader with complete coding examples.
Do It exercises in each chapter provide the opportunity to make adjustments to the example code. The end of chapter programming exercises allow the reader to develop their own applications using the algorithms demonstrated in the chapter. The reader will experience the creation of a complete three tier application using a natural process of building and testing modules within each tier.
Each tier is logically and physically separated using Object Oriented and Dependency Injection techniques, thus allowing independent tiers that can be updated with little or no effect on the other tiers.In addition to teaching good programming practices through OOP, there is a strong emphasis on creating secure code. As each chapter is completed, the reader is provide the opportunity to design and create a 'Term Project' application reinforcing the concepts learned.

What You'll Learn
  • What are PHP language basics: conditional statements, loops, arrays, methods (functions) 
  • How to combine PHP with HTML5, CSS3, and JavaScript to create web applications 
  • How to work with XML, JSON, and MySQL data 
  • How to use secure coding techniques 
  • How to create error logs, user logs, and application logs
  • What are the various backup and recovery techniques 
  • How to use Try/Catch blocks as emphasized with PHP 7 to handle program exceptions 
Audience
This book is for those who are new to PHP and new to the new PHP 7 programming / scripting language, the most popular for web development.





Steve Prettyman is a college instructor on PHP programming, web development and related.  He is and has been a practicing web developer and is a book author.  
This new book on PHP 7 introduces writing solid, secure, object-oriented code in the new PHP 7: you will create a complete three-tier application using a natural process of building and testing modules within each tier. This practical approach teaches you about app development and introduces PHP features when they are actually needed rather than providing you with abstract theory and contrived examples.In Learn PHP 7, programming examples take advantage of the newest PHP features, including enhanced password encryption using password_hash. This book takes a learn-by-doing approach, providing you with complete coding examples."e;Do It"e; exercises in each chapter provide the opportunity to make adjustments to the example code. The end of chapter programming exercises allow you to develop your own applications using the algorithms demonstrated in the chapter. Each tier is logically and physically separated using object-oriented and dependency injection techniques, thus allowing independent tiers that can be updated with little or no effect on the other tiers. In addition to teaching good programming practices through OOP, there is a strong emphasis on creating secure code. As each chapter is completed, the reader is provide the opportunity to design and create an application reinforcing the concepts learned.

Steve Prettyman is a college instructor on PHP programming, web development and related.  He is and has been a practicing web developer and is a book author.  

Contents at a Glance 4
Contents 5
About the Author 11
Acknowledgments 12
Introduction 13
Chapter 1: An Introduction to PHP 7 18
Chapter Objectives/Student Learning Outcomes 18
PHP 5.5+, PHP 7+, and PHP.NET 18
PHP 5.6+ and PHP 7+ 25
Do It 25
PHP, JavaScript, CSS, HTML, and Apache Web Server 26
Do It 30
PHP, Apache, and MySQL 31
Do It 35
Putting it All Together—PHP, Apache, and MySQL 35
EasyPHP 35
Common Installation Problems 36
Missing C# Library 36
Port Conflicts 36
Missing Files 37
Can’t Install Files In Program Files Directory 37
Apache Delays and Hang-ups 38
Other Errors 38
Configurations 38
XAMPP 39
Common Installation Problems 39
Port Conflicts 39
Missing Files 40
Can’t Install Files in Program Files Directory 40
Apache Delays and Hang-ups 41
Other Errors 41
Configurations 41
Microsoft Internet Information Server 41
Do It 42
Testing Your Environment 42
Testing Your Administration Environment 42
Do It 44
Testing Your PHP Environment 45
Common Problems 46
EasyPHP’s Code Classroom 47
Do It 47
Alias Directories 47
Do It 50
Notepad++, Editors, and Code Testers 50
Notepad++ 51
Other Editors 51
Do It 52
Chapter Terms 52
Chapter Questions and Projects 52
Chapter 2: Interfaces, Platforms, Containers, and Three-Tier Programming 56
Chapter Objectives/Student Learning Outcomes 56
PHP Platforms and Containers 56
PHP PC Applications 57
PHP Smart Phone Applications 57
PHP Facebook and Other Social Applications 57
Do It 58
PHP, AJAX, and CSS—Web Applications 64
Do It 69
PHP, AJAX, and CSS— Smart Phone Web Applications 69
Do It 71
PHP, HTML, JavaScript, CSS, and Dynamic Web Pages 71
Do It 74
PHP Three-Tier Architecture 74
Do It 75
Interface Tier 76
Do It 77
Business Rules Tier 78
Do It 79
Data Tier 80
Do It 81
Putting It All Together 81
Case Study 82
Interface Tier 82
Business Rules Tier 84
Data Tier 84
Do It 86
MVC and Dependency Injection 87
Chapter Terms 87
Chapter Questions and Projects 88
Chapter 3: Modular Programming 93
Chapter Objectives/Student Learning Outcomes 93
PHP Libraries, Extensions, Classes, and Objects 93
PHP Extensions 94
Classes and Objects 95
Creating a PHP Class 95
Do It 100
Return Method 100
Do It 102
Set Methods 103
Do It 109
Get Methods 109
Do It 112
Constructor Method 112
Do It 117
Chapter Terms 117
Chapter Questions and Projects 118
Chapter 4: Secured User Interfaces 124
Chapter Objectives/Student Learning Outcomes 124
Secured User Interaction 125
HTML5 Form Validation 125
Do It 128
JavaScript Validation 129
Do It 135
PHP Filtering 135
Do It 138
Additional HTML Input Security 138
HTML5 Select List Box and Radio Buttons 139
Do It 143
Validating Input with an XML File 143
Do It 150
Dependency Injection 150
Do It 162
Chapter Terms 162
Chapter Questions and Projects 163
Chapter 5: Handling and Logging Exceptions 167
Chapter Objectives/Student Learning Outcomes 167
Handling Exceptions 167
Do It 174
Exception and Error Handling vs. If/Else Conditions 174
Do It 181
Logging Exceptions 181
Do It 187
Reading Log and Text Files 188
Do It 196
Chapter Terms 196
Chapter Questions and Projects 197
Chapter 6: Data Objects 201
Chapter Objectives/Student Learning Outcomes 201
The Data Class 201
JSON Data 211
MySQL Data 211
Do It 213
Backup and Recovery 213
JSON Backup and Recovery 225
MySQL Backup and Recovery 225
Do It 228
Connecting the Data Tier 228
Do It 233
Chapter Terms 234
Chapter Questions and Projects 234
Chapter 7: Authentication 237
Chapter Objectives/Student Learning Outcomes 237
Verification and Sessions 237
JSON Data 246
MySQL Data 246
Do It 247
Registration 247
JSON Data 250
MySQL Data 251
Logging In 251
JSON Data 256
MySQL Data 256
Change Password 257
JSON Data 260
MySQL Data 260
Do It 260
Chapter Terms 261
Chapter Questions and Projects 261
Chapter 8: Multifunctional Interfaces 263
Chapter Objectives/Student Learning Outcomes 263
The Complete Application 263
Data Handling Using JavaScript 263
Do It 277
Updating, Deleting, and Inserting in the Interface Tier 277
Do It 284
Updating, Deleting, and Inserting in the Business Rules Tier 284
Do It 290
Final Touches 290
Do It 298
ABC Canine Shelter Reservation System Logical Design 299
Limitations 299
Chapter Terms 301
Chapter Questions and Projects 301
Index 303

Erscheint lt. Verlag 29.12.2015
Zusatzinfo XIX, 294 p. 75 illus.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Web / Internet
Schlagworte CSS3 • HTML5 • JavaScript • JSON • learn • modular programming • MySQL • objection oriented • OO • PHP • PHP 7 • programming • Scripting • Web Development • XML
ISBN-10 1-4842-1730-6 / 1484217306
ISBN-13 978-1-4842-1730-6 / 9781484217306
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 5,5 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Webentwickler

von Philip Ackermann

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 36,55
Das umfassende Handbuch

von Johannes Ernesti; Peter Kaiser

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 32,90