Prettyman | Learn PHP 7 | E-Book | www.sack.de
E-Book

E-Book, Englisch, 308 Seiten

Prettyman Learn PHP 7

Object Oriented Modular Programming using HTML5, CSS3, JavaScript, XML, JSON, and MySQL
1. ed
ISBN: 978-1-4842-1730-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

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

E-Book, Englisch, 308 Seiten

ISBN: 978-1-4842-1730-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



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 LearnWhat 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 
AudienceThis 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.  

Prettyman Learn PHP 7 jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;4
2;Contents;5
3;About the Author;11
4;Acknowledgments;12
5;Introduction;13
6;Chapter 1: An Introduction to PHP 7;18
6.1; Chapter Objectives/Student Learning Outcomes;18
6.2; PHP 5.5+, PHP 7+, and PHP.NET;18
6.2.1; PHP 5.6+ and PHP 7+;25
6.2.2; Do It;25
6.3; PHP, JavaScript, CSS, HTML, and Apache Web Server;26
6.3.1; Do It;30
6.4; PHP, Apache, and MySQL;31
6.4.1; Do It;35
6.5; Putting it All Together—PHP, Apache, and MySQL;35
6.5.1; EasyPHP;35
6.5.1.1;Common Installation Problems;36
6.5.1.1.1;Missing C# Library;36
6.5.1.1.2; Port Conflicts;36
6.5.1.1.3; Missing Files;37
6.5.1.1.4;Can’t Install Files In Program Files Directory;37
6.5.1.1.5;Apache Delays and Hang-ups;38
6.5.1.1.6;Other Errors;38
6.5.1.2; Configurations;38
6.5.2; XAMPP;39
6.5.2.1;Common Installation Problems;39
6.5.2.1.1;Port Conflicts;39
6.5.2.1.2; Missing Files;40
6.5.2.1.3;Can’t Install Files in Program Files Directory;40
6.5.2.1.4;Apache Delays and Hang-ups;41
6.5.2.1.5;Other Errors;41
6.5.2.2; Configurations;41
6.5.3; Microsoft Internet Information Server;41
6.5.4; Do It;42
6.6; Testing Your Environment;42
6.6.1; Testing Your Administration Environment;42
6.6.2; Do It;44
6.6.3; Testing Your PHP Environment;45
6.6.3.1;Common Problems;46
6.6.4; EasyPHP’s Code Classroom;47
6.6.5; Do It;47
6.7; Alias Directories;47
6.7.1; Do It;50
6.8; Notepad++, Editors, and Code Testers;50
6.8.1; Notepad++;51
6.8.2; Other Editors;51
6.8.3; Do It;52
6.9; Chapter Terms;52
6.10; Chapter Questions and Projects;52
7;Chapter 2: Interfaces, Platforms, Containers, and Three-Tier Programming;56
7.1; Chapter Objectives/Student Learning Outcomes;56
7.2; PHP Platforms and Containers;56
7.2.1; PHP PC Applications;57
7.2.2; PHP Smart Phone Applications;57
7.2.3; PHP Facebook and Other Social Applications;57
7.2.4; Do It;58
7.2.5; PHP, AJAX, and CSS—Web Applications;64
7.2.5.1;Do It;69
7.2.6; PHP, AJAX, and CSS— Smart Phone Web Applications;69
7.2.6.1;Do It;71
7.2.6.2;PHP, HTML, JavaScript, CSS, and Dynamic Web Pages;71
7.2.6.3;Do It;74
7.3; PHP Three-Tier Architecture;74
7.3.1; Do It;75
7.3.2; Interface Tier;76
7.3.3; Do It;77
7.3.4; Business Rules Tier;78
7.3.5; Do It;79
7.3.6; Data Tier;80
7.3.7; Do It;81
7.3.8; Putting It All Together;81
7.3.9; Case Study;82
7.3.9.1; Interface Tier;82
7.3.9.2; Business Rules Tier;84
7.3.9.3; Data Tier;84
7.3.10; Do It;86
7.4; MVC and Dependency Injection;87
7.5; Chapter Terms;87
7.6; Chapter Questions and Projects;88
8;Chapter 3: Modular Programming;93
8.1; Chapter Objectives/Student Learning Outcomes;93
8.2; PHP Libraries, Extensions, Classes, and Objects;93
8.3; PHP Extensions;94
8.3.1; Classes and Objects;95
8.4; Creating a PHP Class;95
8.4.1; Do It;100
8.5; Return Method;100
8.5.1; Do It;102
8.6; Set Methods;103
8.6.1; Do It;109
8.7; Get Methods;109
8.7.1; Do It;112
8.8; Constructor Method;112
8.8.1; Do It;117
8.9; Chapter Terms;117
8.10; Chapter Questions and Projects;118
9;Chapter 4: Secured User Interfaces;124
9.1; Chapter Objectives/Student Learning Outcomes;124
9.2; Secured User Interaction;125
9.3; HTML5 Form Validation;125
9.3.1; Do It;128
9.4; JavaScript Validation;129
9.4.1; Do It;135
9.5; PHP Filtering;135
9.5.1; Do It;138
9.6; Additional HTML Input Security;138
9.6.1; HTML5 Select List Box and Radio Buttons;139
9.6.2; Do It;143
9.6.3; Validating Input with an XML File;143
9.6.3.1;Do It;150
9.7; Dependency Injection;150
9.7.1; Do It;162
9.8; Chapter Terms;162
9.9; Chapter Questions and Projects;163
10;Chapter 5: Handling and Logging Exceptions;167
10.1; Chapter Objectives/Student Learning Outcomes;167
10.2; Handling Exceptions;167
10.2.1; Do It;174
10.3; Exception and Error Handling vs. If/Else Conditions;174
10.3.1; Do It;181
10.4; Logging Exceptions;181
10.4.1; Do It;187
10.5; Reading Log and Text Files;188
10.5.1; Do It;196
10.6; Chapter Terms;196
10.7; Chapter Questions and Projects;197
11;Chapter 6: Data Objects;201
11.1; Chapter Objectives/Student Learning Outcomes;201
11.2; The Data Class;201
11.3; JSON Data;211
11.4; MySQL Data;211
11.4.1; Do It;213
11.5; Backup and Recovery;213
11.6; JSON Backup and Recovery;225
11.7; MySQL Backup and Recovery;225
11.7.1; Do It;228
11.8; Connecting the Data Tier;228
11.8.1; Do It;233
11.9; Chapter Terms;234
11.10; Chapter Questions and Projects;234
12;Chapter 7: Authentication;237
12.1; Chapter Objectives/Student Learning Outcomes;237
12.2; Verification and Sessions;237
12.3; JSON Data;246
12.4; MySQL Data;246
12.4.1; Do It;247
12.5; Registration;247
12.6; JSON Data;250
12.7; MySQL Data;251
12.8; Logging In;251
12.9; JSON Data;256
12.10; MySQL Data;256
12.11; Change Password;257
12.12; JSON Data;260
12.13; MySQL Data;260
12.14; Do It;260
12.15; Chapter Terms;261
12.16; Chapter Questions and Projects;261
13;Chapter 8: Multifunctional Interfaces;263
13.1; Chapter Objectives/Student Learning Outcomes;263
13.2; The Complete Application;263
13.3; Data Handling Using JavaScript;263
13.3.1; Do It;277
13.4; Updating, Deleting, and Inserting in the Interface Tier;277
13.4.1; Do It;284
13.5; Updating, Deleting, and Inserting in the Business Rules Tier;284
13.5.1; Do It;290
13.6; Final Touches;290
13.6.1; Do It;298
13.7; ABC Canine Shelter Reservation System Logical Design;299
13.7.1; Limitations;299
13.8; Chapter Terms;301
13.8.1; Chapter Questions and Projects;301
14;Index;303



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.