
PHP: The Good Parts
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Foreword
- Preface
- Conventions Used in This Book
- Using Code Examples
- How to Contact Us
- Safari® Books Online
- Acknowledgments
- Chapter 1. The Good Parts
- Why PHP?
- A Brief History of PHP
- PHP's Place in the World
- What Is PHP?
- What Has Been Accomplished with PHP?
- Basic PHP Setup
- Chapter 2. Casing the Joint
- Whitespace, Comments, and Basic Syntax
- Variables: Data Types, Loose Typing, and Scope
- Defined Constants
- Expressions
- Decisions, Decisions (Flow Control)
- If...Else...
- Switch...Case...
- While...
- For
- Integration with Web Pages
- Cookies
- Sessions
- $_GET
- $_POST
- $_REQUEST
- Chapter 3. Functions (Doing It Once)
- Parameter Passing
- Default Parameters
- Passing by Value Versus Passing by Reference
- Include and Require
- Built-In Functions Versus UDFs
- Chapter 4. Strings
- What Is a String?
- You Can Quote Me
- String Functions (Best of)
- String Trimmings
- Character Case Management
- String Content Searching
- String Modification
- Chapter 5. Arrays
- Indexed Arrays
- Associative Arrays
- Arrays from Another Dimension
- Arrays Can Be Dynamic
- Traversing Arrays
- Array Functions (Best of)
- Sorting Arrays
- Math-Type Functions
- Array Potpourri
- Chapter 6. Objects
- Putting It into Practice
- Magic Methods
- $this
- Objects in Action
- Public, Protected, and Private
- Getters and Setters
- Chapter 7. Database Interaction
- MySQLi Object Interface
- Retrieving Data for Display
- PHP Data Objects
- PDO Prepared Statements
- Data Management on the Cheap
- SQLite
- File Management As a Database Alternative
- Chapter 8. PHP and Friends
- Email/SMS Generation
- PDF Generation
- Constructor Method and Basic Document Options
- Adding Document Headers and Footers
- Adding Images and Links
- Adding a Watermark
- Dynamic PDFs and Table Display
- Graphical Reports Generation
- Pie Charts
- Bar Charts
- Captchas
- Chapter 9. PHP Security
- Data Validation
- Escape Output
- Cross-Site Scripting (XXS) and SQL Injection
- Password Encryption Security
- Security Tips
- Chapter 10. PHP 5.3 Good Parts
- Namespaces
- Closures (Anonymous Functions)
- NOWDOC
- goto Operator
- DateTime and DateTimeZone Classes
- Additional 5.3 Features
- Chapter 11. Advanced Goodness
- Regular Expressions
- String Matching
- String Substituting
- String Splitting
- SimpleXML
- Integrated Development Environments
- Komodo by ActiveState
- Zend Studio for Eclipse
- PhpED by NuSphere
- Primary Websites
- php.net
- zend.com
- devzone.zend.com
- phparch.com
- PHP/Web Conferences
- Appendix. The Bad Parts
- goto
- Function Naming and Parameter Order
- Loose Typing
- Register Globals
- Is That All?
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.