Memeber's Area My Account
Sign upForgot password
Find our Stores
PHP For the Web
Author Larry Ullman
Publisher Peachpit
ISBN 9780134291253
Classification Computer & Information Technology > Internet
Price HK$360.00
 
Exchange Rate is just for reference
Exchange Rate Reference
Exchange Rate is just for reference
Product details are for reference only. Please call or visit our stores to confirm the stock in advance.
 More information
With PHP for the Web: Visual QuickStart Guide readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know.

This task-based visual reference guide uses step-by-step instructions and plenty of screenshots to teach beginning and intermediate users this popular open-source scripting language. Author Larry Ullman guides readers through the ins and outs of both PHP 5 and PHP 7, and offers more efficient ways to tackle common needs.

Both beginning users, who want a thorough introduction to the technology, and more intermediate users, who are looking for a convenient reference, will find what they need here--in straightforward language and through readily accessible examples.

* Easy visual approach uses demonstrations and real-world examples to guide you through dynamic web development using PHP and show you what to do step by step.
* Concise steps and explanations let you get up and running in no time.
* Essential reference guide keeps you coming back again and again.
* Whether you’re a programming newbie or an experienced veteran learning PHP for the first time, this book will teach you all you need to know, including the latest changes in PHP and more efficient ways to tackle common needs.


About the Author:

PHP expert Larry Ullman has written several best-selling books on the topic, including the previous edition of this guide. In addition, he serves as the Director of Digital Media Technology at DMC Insights and teaches numerous classes on PHP.


Introduction
What Is PHP?
Why Use PHP?
How PHP Works
What You'll Need
About This Book
Companion Website

Chapter 1: Getting Started with PHP
Basic HTML Syntax
To create an HTML page:
Basic PHP Syntax
To create a new PHP script on your computer
Using SFTP
To SFTP your script to the server
Testing Your Script
To test your script in the browser
Sending Text to the Browser
To print a simple message
Using the PHP Manual
To look up a function definition
Sending HTML to the Browser
To send HTML to the browser
Adding Comments to Scripts
To add comments to a script
Basic Debugging Steps
To debug a PHP script
Review and Pursue
Review
Pursue

Chapter 2: Variables
What Are Variables?
To print PHP's predefined variables
Variable Syntax
Types of Variables
Numbers
Strings
Arrays
Variable Values
To assign values to and access variables
Understanding Quotation Marks
To use quotation marks
Review and Pursue
Review
Pursue

Chapter 3: HTML Forms and PHP
Creating a Simple Form
To create a basic HTML form
Choosing a Form Method
To add a method to a form
Receiving Form Data in PHP
To handle an HTML form
Displaying Errors
To display errors in a script
Error Reporting
To adjust error reporting in a script:
Manually Sending Data to a Page
To create the HTML page
To create the PHP script
Review and Pursue
Review
Pursue

Chapter 4: Using Numbers
Creating the Form
To create the HTML form
Performing Arithmetic
To create your sales cost calculator
Formatting Numbers
To format numbers
Understanding Precedence
To manage precedence:
Incrementing and Decrementing a Number
To increment the value of a variable
Creating Random Numbers
To generate random numbers
Review and Pursue
Review
Pursue

Chapter 5: Using Strings
Creating the HTML Form
To create the HTML form
Concatenating Strings
To use concatenation
Handling Newlines
To convert newlines to breaks
HTML and PHP
To address HTML in PHP
Encoding and Decoding Strings
To use urlencode()
Finding Substrings
To create substrings
Replacing Parts of a String
To use str_ireplace () and trim()
Review and Pursue
Review
Pursue

Chapter 6: Control Structures
Creating the HTML Form
To create the HTML form
The if Conditional
To create an if conditional
Validation Functions
To validate form data
Using else
To use else
More Operators
Comparison
To use comparison operators
Logical
To use logical operators
Using elseif
To use elseif
The Switch Conditional
To use a switch conditional
The for Loop
To write a for loop
Review and Pursue
Review
Pursue
[Beginning here, the outline has not been through a dev edit. I'm taking this from the previous edition of the book.]

Chapter 7: Using Arrays
What Is an Array?
Syntactical rules for arrays
Creating an Array
To create an array
Adding Items to an Array
To add elements to an array
Accessing Array Elements
To print the values of any array
Creating Multidimensional Arrays
To use multidimensional arrays
Sorting Arrays
To sort an array
Transforming Between Strings and Arrays
To create the HTML form
To convert between strings and arrays
Creating an Array from a Form
To create an array with an HTML form
To handle the HTML form
Review and Pursue
Review
Pursue

Chapter 8: Creating Web Applications
Creating Templates
To create the layout model
To create the header file
To create the footer file
Using External Files
To use external files
Using Constants
To use constants
To print out a constant
Working with the Date and Time
To use date()
Handling HTML Forms with PHP, Revisited
To use one page to display and handle a form
Making Forms Sticky
To make a sticky form
Sending Email
To send email with PHP
Output Buffering
To use output buffering
Manipulating HTTP Headers
To use the header() function
To write welcome.php
Review and Pursue
Review
Pursue

Chapter 9: Cookies and Sessions
What Are Cookies?
Creating Cookies
To send cookies
Reading from Cookies
To retrieve cookie data with PHP
Adding Parameters to a Cookie
To set a cookie's expiration date
Deleting a Cookie
To delete a cookie
What Are Sessions?
Creating a Session
To create a session
Accessing Session Variables
To access session variables
Deleting a Session
To delete a session
Review and Pursue
Review
Pursue

Chapter 10: Creating Functions
Creating and Using Simple Functions
To create and call a basic function
Creating and Calling Functions That Take Arguments
To create and call a function that takes an argument
Setting Default Argument Values
To write a function that uses default values
Creating and Using Functions That Return a Value
To create and use a function that returns a value
Understanding Variable Scope
To use the global statement
Review and Pursue
Review
Pursue

Chapter 11: Files and Directories
File Permissions
Creating the text file
To create quotes.txt
Setting a file's permissions
To set a file's permissions on a remote server
To set a file's permissions on your computer
Writing to Files
To write to an external file
Locking Files
To use file locks
Reading from Files
To read from a file
Handling File Uploads
To create a writable directory
To use PHP for file uploads
Navigating Directories
To create the directory control panel
Creating Directories
To create the directory and the data file
To create the registration script
Reading Files Incrementally
To read a file incrementally
Review and Pursue
Review
Pursue

Chapter 12: Intro to Databases
Introduction to SQL
Connecting to MySQL
To connect to MySQL
MySQL Error Handling
To use error handling
Creating and Selecting a Database
To create and select a database
Creating a Table
To create a new table
Inserting Data into a Database
To enter data into a database from an HTML form
Securing Query Data
To secure query data
Retrieving Data from a Database
To retrieve data from a table
Deleting Data in a Database
To delete data from a database
Updating Data in a Database
To update data in a database
Review and Pursue
Review
Pursue

Chapter 13: Putting It All Together
Getting Started
Connecting to the Database
To create mysql_connect.php
Writing the User-Defined Function
To create functions.php
Creating the Template
To create header.html
To create footer.html
Logging In
To create login.php
Logging Out
To create logout.php
Adding Quotes
To create add_quote.php:
Listing Quotes
To create view_quotes.php
Editing Quotes
To create edit_quote.php
Deleting Quotes
To create delete_quote.php
Creating the Home Page
To create index.php
Review and Pursue
Review
Pursue

Appendix A: Installation and Configuration
Installation on Windows
To install XAMPP on Windows
Installation on Mac OS
To install MAMP on Mac OS X
PHP Configuration
To alter PHP's configuration
MySQL Interfaces
Using the MySQL Client
To use the MySQL client
Using phpMyAdmin
To use phpMyAdmin
Managing MySQL Users
Setting the root user password
To assign a password to the root user via the MySQL client
To assign a password to the root user via phpMyAdmin
Creating users and privileges
To create new users using GRANT

Appendix B: Resources and Next Steps
Online PHP Resources
The PHP manual
General PHP Websites
Code repositories
Newsgroups and mailing lists
Database Resources
Top 10 Frequently Asked Questions (or Problems)
Next Steps
Security
Object-oriented programming
Frameworks
JavaScript and Ajax
Other books
Tables


This website best view with 1024x768; Chrome/Firefox/Internet Explorer 9.0+
©1999-2020 Commercial Press (HK) Cyberbooks Ltd. All Rights Reserved.
Save in Hold Area