Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Buy Now $9.99
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
8Activity
×

Table Of Contents

Chapter 1. About PHP Essentials
1.1 Intended Audience
Chapter 2. The History of PHP
2.1 The Creation of PHP
2.2 PHP 3 Hits the Big Time
2.3 PHP 4 - Optimization, Scalability and More
2.4 PHP 5 - Object Orientation, Error Handling and XML
2.5 How Popular is PHP?
Chapter 3. An Overview of PHP
3.1 What Exactly is PHP?
3.2 How Does PHP Work?
3.3 Why is PHP so Useful?
3.4 Summary
Chapter 4. Creating a Simple PHP Script
4.1 The PHP Code Delimiters
4.2 Testing the PHP Installation
4.3 Embedding PHP into an HTML File
4.4 Embedding HTML into a PHP Script
4.5 Summary
Chapter 5. Commenting PHP Code
5.1 PHP Single Line Comments
5.2 PHP Multi-line Comments
Summary
Chapter 6. An Introduction to PHP Variables
6.1 Naming and Creating a Variable in PHP
6.2 Assigning a Value to a PHP Variable
6.3 Accessing PHP Variable Values
6.4 Changing the Type of a PHP Variable
6.5 Checking Whether a Variable is Set
Chapter 7. Understanding PHP Variable Types
7.1 The PHP Integer Variable Type
7.2 The PHP Float Variable Type
7.3 The PHP Boolean Variable Type
7.4 The PHP String Variable
7.5 Extracting and Writing String Fragments
7.6 Creating PHP heredoc Strings
Chapter 8. PHP Constants
8.1 Defining a PHP Constant
8.2 Checking if a PHP Constant is Defined
8.3 Using a Variable as a Constant Name
8.4 Predefined PHP Constants
8.4.1 PHP Script and Environment Related Constants
8.4.2 PHP Mathematical Constants
Chapter 9. PHP Operators
9.1 PHP Assignment Operators
9.2 PHP Arithmetic Operators
9.3 PHP Comparison Operators
9.4 PHP Logical Operators
9.5 PHP Increment and Decrement Operators
9.6 PHP String Concatenation Operator
9.7 Concatenation of Numbers and Strings in PHP
9.8 PHP Execution Operator - Executing Server Side Commands
Chapter 10. PHP Flow Control and Looping
10.1 PHP Conditional Statements
10.1.1 The PHP if Statement
10.1.2 The PHP if ... else Statements
10.2 PHP Looping Statements
10.2.1 PHP for loops
10.3 PHP while loops
10.3.1 PHP do ... while loops
10.4 PHP switch Statements
10.5 Breaking a Loop
10.5.1 Breaking Out of Nested Loops
10.6 Skipping Statements in Current Loop Iteration
Chapter 11. PHP Functions
11.1 What is a PHP Function?
11.2 How to Write a PHP Function
11.3 Returning a Value from a PHP Function
11.4 Passing Parameters to a PHP Function
11.5 Calling PHP Functions
11.6 Passing Parameters by Reference
11.7 Returning Values by Reference
11.8 Functions and Variable Scope
Chapter 12. PHP Arrays
12.1 Create a PHP Array
12.2 Accessing Elements in a PHP Array
12.3 Creating an Associative Array
12.4 Accessing Elements of an Associative Array
12.5 Creating Multidimensional PHP Arrays
12.6 Accessing Elements in a Multidimensional PHP Array
12.7 Using PHP Array Pointers
12.8 Changing, Adding and Removing PHP Array Elements
12.9 Looping through PHP Array Elements
12.10 Replacing Sections of an Array
12.11 Sorting a PHP Array
12.12 Sorting Associative Arrays
12.13 Getting Information About PHP Arrays & other Array Functions
12.14 Summary
Chapter 13. Working with Strings and Text in PHP
13.1 Converting to and from ASCII Values
13.2 Printing Formatted Strings in PHP
13.2.1 PHP printf Formatting Specifiers
13.3 Finding the Length of a PHP String
13.4 Converting a String into a PHP Array
13.5 Removing Leading and Trailing Whitespace from a PHP String
13.6 Comparing Strings in PHP
13.6.1 String Comparison Functions Return Value
13.7 Accessing and Modifying Characters in String
13.8 Searching for Characters and Substrings in a PHP String
13.9 Extracting and Replacing Substrings in PHP
13.10 Replacing All Instances of a Word in a PHP String
Chapter 14. PHP, File systems and File I/O
14.1 Opening and Creating Files in PHP
14.2 Closing Files in PHP
14.3 Writing to a File using PHP
14.4 Reading From a File using PHP
14.5 Checking Whether a File Exists
14.6 Moving, Copying and Deleting Files with PHP
14.7 Accessing File Attributes
14.8 PHP Output Buffering
Chapter 15. Working with Directories in PHP
15.1 Creating Directories in PHP
15.2 Deleting a Directory
15.3 Finding and Changing the Current Working Directory
15.4 Listing Files in a Directory
Chapter 16. An Overview of HTML Forms
16.1 Creating HTML Forms
16.2 HTML Text Object
16.3 HTML TextArea Object
16.4 The HTML Button Object
16.5 HTML Check Boxes
16.6 HTML Radio Buttons
16.7 HTML Drop-down / Select Object
16.8 HTML Password Object
16.9 Summary
Chapter 17. PHP and HTML Forms
17.1 Creating the Form
17.2 Processing Form Data Using PHP
17.3 Processing Multiple Selections with PHP
17.4 Summary
Chapter 18. PHP and Cookies - Creating, Reading and Writing
18.1 The Difference Between Cookies and PHP Sessions
18.2 The Structure of a Cookie
18.2.1 Cookie Name / Value Pair
18.2.2 Cookie Expiration Setting
18.2.3 Cookie path Setting
18.2.4 Cookie domain Setting
18.2.5 Cookie Security Setting
18.3 Creating a Cookie in PHP
18.4 Reading a Cookie in PHP
18.5 Deleting a Cookie
Chapter 19. Understanding PHP Sessions
19.1 What is a PHP Session?
19.2 Creating a PHP Session
19.3 Creating and Reading PHP Session Variables
19.4 Writing PHP Session Data to a File
19.5 Reading a Saved PHP Session
Chapter 20. PHP Object Oriented Programming
20.1 What is an Object?
20.2 What is a Class?
20.3 How is an Object Created from a Class?
20.4 What is sub-classing?
20.5 Defining a PHP Class
20.6 PHP Class Constructors and Destructors
20.7 Creating Members in a PHP Class
20.8 Defining and Calling Methods
20.9 Subclassing in PHP
20.10 PHP Object Serialization
20.11 Getting Information about a PHP Object
Chapter 21. Using PHP with MySQL
21.1 Creating a MySQL User Account
21.2 Creating and Select MySQL Database
21.3 Creating a MySQL Database Table
21.4 Inserting Data into a MySQL Database Table
21.5 Connecting with PHP to a MySQL Server
21.6 Selecting Records from a MySQL Database Using PHP
21.7 Adding Records to MySQL Database using PHP
21.8 Modifying and Deleting MySQL Records using PHP
21.9 Using PHP to get Information about a MySQL Database
21.10 Summary
Chapter 22. PHP and SQLite
22.1 Creating an SQLite Database with PHP
22.2 Using PHP to Add Records to an SQLite Database
22.3 Using PHP to Select Records from an SQLite Database
22.4 Summary
P. 1
PHP Essentials eBook

PHP Essentials eBook

Ratings:

4.5

(4)
|Views: 8,946|Likes:
Published by neilsmyth
The purpose of this book is bring the power and ease of use of PHP to anyone with a desire to learn PHP, and in doing so, join the tens of thousands of web developers who have already discovered the flexibility and productivity that comes with using PHP.

The book is intended to cover all aspects of PHP. It starts by covering the history of PHP before providing a high level overview of how PHP works and why it is so useful to web developers. It then moves on to cover each area of PHP in detail, from the basics of the scripting language through to object oriented programming, file and file system handling and MySQL and SQLite database integration. In addition, chapters are also provided covering the creation and handling of HTML based forms and maintaining state using both cookies and PHP sessions. Each topic area is accompanied by extensive real world examples intended to bring theory to life.

It is anticipated that the typical reader already has some web based experience at least in terms of understanding the concepts of a web server and creating HTML based content. While prior programming and scripting experience will be beneficial to the reader, this book is designed such that even the non-programmer can quickly get up to speed with PHP.
The purpose of this book is bring the power and ease of use of PHP to anyone with a desire to learn PHP, and in doing so, join the tens of thousands of web developers who have already discovered the flexibility and productivity that comes with using PHP.

The book is intended to cover all aspects of PHP. It starts by covering the history of PHP before providing a high level overview of how PHP works and why it is so useful to web developers. It then moves on to cover each area of PHP in detail, from the basics of the scripting language through to object oriented programming, file and file system handling and MySQL and SQLite database integration. In addition, chapters are also provided covering the creation and handling of HTML based forms and maintaining state using both cookies and PHP sessions. Each topic area is accompanied by extensive real world examples intended to bring theory to life.

It is anticipated that the typical reader already has some web based experience at least in terms of understanding the concepts of a web server and creating HTML based content. While prior programming and scripting experience will be beneficial to the reader, this book is designed such that even the non-programmer can quickly get up to speed with PHP.

More info:

Published by: neilsmyth on May 21, 2009
Copyright:Traditional Copyright: All rights reserved
List Price: $9.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See More
See less

12/29/2011

$9.99

USD

pdf

You're Reading a Free Preview
Pages 11 to 142 are not shown in this preview.

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
shahidrana1122 liked this
bondass23 liked this
Myreen Calabia liked this
Faisal Rahmani liked this
Ricky Das liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->