Home Page Icon
Home Page
Table of Contents for
Dedication
Close
Dedication
by Jason Lengstorf
PHP for Absolute Beginners
Copyright
Dedication
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Getting Started
Setting Up the PHP Development Environment
Why You Need Apache, MySQL, and PHP
Installing PHP, Apache, and MySQL (the Hard Way)
Choosing a Development Kit
Installing and Using the Eclipse PDT
Summary
Understanding PHP: Language Basics
Embedding PHP Scripts
Variables and Datatypes
Sending Data to the Browser as Output
Commenting Your Code
Operators
Control Structures
User-Defined
Summary
Passing Information with PHP
Superglobal Arrays
Summary
Working with Databases
The Basics of MySQL Data Storage
Manipulating Data in MySQL Tables
Opening a Connection
Table Structure and a Crash Course in Planning
Summary
Building Your Blog
Building the Entry Manager
Planning the Entry Database Table
Creating the Entry Input Form
Create a Script to Process the Form Input
Displaying the Saved Entries
Fix the Redirect
Summary
Adding Support for Multiple Pages
Add a page Column to the entries Table
Modify Your Functions to Accept Page Parameters
Modifying admin.php to Save Page Associations
Saving Page Associations
Using .htaccess to Create Friendly URLs
Creating Different Viewing Styles for the Pages
Summary
Updating and Deleting Entries
Creating Administrative Links
Displaying Administrative Links
Passing URL Values to admin.php with .htaccess
Populating Your Form with the Entry to Be Edited
Updating Entries in the Database
Handling Entry Deletion
Confirming Your Choice to Delete an Entry
Removing Deleted Entries from the Database
Summary
Adding the Ability to Upload Images
Adding a File Input to the Admin Form
Accessing the Uploaded File
Writing the Image Handling Class
Storing and Retrieving Images from the Database
Resizing Images
Summary
Reaching Out to Site Visitors
Syndicating the Blog
What Is RSS?
Creating an RSS Feed
Publishing Your Feed
Summary
Adding a Commenting System to Your Blog
Creating a comments Table in the Database
Building a Comments Class
Building the Comment Entry Form
Storing New Comments in the Database
Retrieving All Comments for a Given Entry
Displaying Comments for a Given Entry
Deleting Comments
Summary
Adding Password Protection to Administrative Links
Adding an admin Table to the Database
Adding Administrators in the Database
Hiding Controls from Unauthorized Users
Creating a Login Form
Displaying Controls to Authorized Users
Logging Users Out
Summary
Finishing Touches
Email Validation
Basic Spam Prevention
"Post to Twitter" Link
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Copyright
Next
Next Chapter
About the Author
Dedication
For my dad, who showed me that nothing stands between a bear and its honey
.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset