With this simple, streamlined guide, non-programmers will quickly learn how to create responsive, data-driven websites with PHP, MySQL, and JavaScript. Discover how the powerful combination of PHP and MySQL provides an easy way to build modern websites complete with dynamic data and user interaction. You'll also learn how to add JavaScript to create rich Internet applications and websites.
-
Chapter 1 Introduction to Dynamic Web Content
-
HTTP and HTML: Berners-Lee’s Basics
-
The Benefits of PHP, MySQL, and JavaScript
-
The Apache Web Server
-
About Open Source
-
Bringing It All Together
-
Test Your Knowledge: Questions
-
-
Chapter 2 Setting Up a Development Server
-
What Is a WAMP, MAMP, or LAMP?
-
Installing a WAMP on Windows
-
Installing a MAMP on Mac OS X
-
Installing a LAMP on Linux
-
Working Remotely
-
Using a Program Editor
-
Using an IDE
-
Test Your Knowledge: Questions
-
-
Chapter 3 Introduction to PHP
-
Incorporating PHP Within HTML
-
This Book’s Examples
-
The Structure of PHP
-
Test Your Knowledge: Questions
-
-
Chapter 4 Expressions and Control Flow in PHP
-
Expressions
-
Operators
-
Conditionals
-
Looping
-
Implicit and Explicit Casting
-
PHP Dynamic Linking
-
Test Your Knowledge: Questions
-
-
Chapter 5 PHP Functions and Objects
-
PHP Functions
-
Including and Requiring Files
-
PHP Version Compatibility
-
PHP Objects
-
Test Your Knowledge: Questions
-
-
Chapter 6 PHP Arrays
-
Basic Access
-
The foreach...as Loop
-
Multidimensional Arrays
-
Using Array Functions
-
Test Your Knowledge: Questions
-
-
Chapter 7 Practical PHP
-
Using printf
-
Date and Time Functions
-
File Handling
-
System Calls
-
XHTML
-
Test Your Knowledge: Questions
-
-
Chapter 8 Introduction to MySQL
-
MySQL Basics
-
Summary of Database Terms
-
Accessing MySQL via the Command Line
-
Indexes
-
MySQL Functions
-
Accessing MySQL via phpMyAdmin
-
Test Your Knowledge: Questions
-
-
Chapter 9 Mastering MySQL
-
Database Design
-
Normalization
-
Relationships
-
Transactions
-
Using EXPLAIN
-
Backing Up and Restoring
-
Test Your Knowledge: Questions
-
-
Chapter 10 Accessing MySQL Using PHP
-
Querying a MySQL Database with PHP
-
A Practical Example
-
Practical MySQL
-
Test Your Knowledge: Questions
-
-
Chapter 11 Form Handling
-
Building Forms
-
Retrieving Submitted Data
-
An Example Program
-
Test Your Knowledge: Questions
-
-
Chapter 12 Templating with Smarty
-
Why Smarty?
-
Installation
-
Creating Scripts
-
Creating Templates
-
A Practical Example
-
Test Your Knowledge: Questions
-
-
Chapter 13 Cookies, Sessions, and Authentication
-
Using Cookies in PHP
-
HTTP Authentication
-
Using Sessions
-
Test Your Knowledge: Questions
-
-
Chapter 14 Exploring JavaScript
-
JavaScript and HTML Text
-
Using Comments
-
Semicolons
-
Variables
-
Operators
-
Variable Typing
-
Functions
-
Global Variables
-
The Document Object Model
-
Test Your Knowledge: Questions
-
-
Chapter 15 Expressions and Control Flow in JavaScript
-
Expressions
-
Operators
-
The with Statement
-
Using onError
-
Using try...catch
-
Conditionals
-
Looping
-
Explicit Casting
-
Test Your Knowledge: Questions
-
-
Chapter 16 JavaScript Functions, Objects, and Arrays
-
JavaScript Functions
-
JavaScript Objects
-
JavaScript Arrays
-
Test Your Knowledge: Questions
-
-
Chapter 17 JavaScript and PHP Validation and Error Handling
-
Validating User Input with JavaScript
-
Regular Expressions
-
Redisplaying a Form After PHP Validation
-
Test Your Knowledge: Questions
-
-
Chapter 18 Using Ajax
-
What Is Ajax?
-
Using XMLHttpRequest
-
Test Your Knowledge: Questions
-
-
Chapter 19 Using YUI for Ajax and More
-
Choosing a Framework
-
Using YUI
-
Other Uses for YUI
-
Test Your Knowledge: Questions
-
-
Chapter 20 Bringing It All Together
-
Designing a Social Networking Site
-
On the Website
-
rnfunctions.php
-
rnheader.php
-
rnsetup.php
-
index.php
-
rnsignup.php
-
rnsignup.php (YUI version)
-
rncheckuser.php
-
rnlogin.php
-
rnprofile.php
-
rnmembers.php
-
rnfriends.php
-
rnmessages.php
-
rnlogout.php
-
-
Appendix Solutions to the Chapter Questions
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
Answers
-
-
Appendix Online Resources
-
PHP Resource Sites
-
MySQL Resource Sites
-
JavaScript Resource Sites
-
Ajax Resource Sites
-
Miscellaneous Resource Sites
-
O’Reilly Resource Sites
-
-
Appendix MySQL’s FULLTEXT Stopwords
-
Appendix MySQL Functions
-
String Functions
-
Date Functions
-
Time Functions
-
-
Appendix Using PEAR and PHPUnit
-
Installation
-
Creating a Connect Instance
-
Rewriting to Use PEAR
-
Adding Other PEAR Packages
-
Unit Testing with PHPUnit
-
-
Colophon
- Title:
- Learning PHP, MySQL, and JavaScript
- By:
- Robin Nixon
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- July 2009
- Ebook Release:
- July 2009
- Pages:
- 528
- Print ISBN:
- 978-0-596-15713-5
- | ISBN 10:
- 0-596-15713-4
- Ebook ISBN:
- 978-0-596-80476-3
- | ISBN 10:
- 0-596-80476-8
The animals on the cover of Learning PHP, MySQL, and JavaScript are sugar gliders (Petaurus breviceps). Sugar gliders are small, gray-furred creatures that grow to an adult length of six to seven-and-a-half inches. Their tails, which are distinguished by a black tip, are usually as long as their bodies. Membranes extend between their wrists and ankles and provide an aerodynamic surface that helps them glide between trees.
Sugar gliders are native to Australia and Tasmania. They prefer to live in the hollow parts of eucalyptus and other types of large trees with several other adult sugar gliders and their own children.
Though sugar gliders reside in groups and defend their territory together, they don't always live in harmony. One male will assert his dominance by marking the group's territory with his saliva and then by marking all group members with a distinctive scent produced from his forehead and chest glands. This ensures that members of the group will know when an outsider approaches; group members will fight off any sugar glider not bearing their scent. However, a sugar glider group will welcome and mark an outsider if one of their adult males dies (the group will typically replace a deceased adult female with their one of their own female offspring).
Sugar gliders make popular pets because of their inquisitive, playful natures, and because many think they are cute. But there are disadvantages to keeping sugar gliders as pets: as they are exotic animals, sugar gliders need specialized, complicated diets consisting of items such as crickets, a variety of fruits and vegetables, and mealworms; healthy housing requires a cage or space no less than the size of an aviary; their distinctive scents can be bothersome to humans; as they are nocturnal creatures, they will bark, hiss, run, and glide all night long; it's not uncommon for them to extricate their bowels while playing or eating; and in some states and countries, it is illegal to own sugar gliders as household pets.
The cover image is from Dover's Animals. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.




