| CARVIEW |
Learning PHP, MySQL, and JavaScript
A Step-by-Step Guide to Creating Dynamic Websites
- By
- Robin Nixon
- Publisher:
- O'Reilly Media
- Released:
- July 2009
- Pages:
- 528
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.
If you know HTML, this guide will have you building interactive websites quickly. You'll learn how to create responsive, data-driven websites with PHP, MySQL, and JavaScript, regardless of whether you already know how to program. 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.
Learning PHP, MySQL, and JavaScript explains each technology separately, shows you how to combine them, and introduces valuable web programming concepts, including objects, XHTML, cookies, and session management. You'll practice what you've learned with review questions in each chapter, and find a sample social networking platform built with the elements introduced in this book.
This book will help you:
- Understand PHP essentials and the basics of object-oriented programming
- Master MySQL, from database structure to complex queries
- Create web pages with PHP and MySQL by integrating forms and other HTML features
- Learn about JavaScript, from functions and event handling to accessing the Document Object Model
- Use libraries and packages, including the Smarty web template system, PEAR program repository, and the Yahoo! User Interface Library
- Make Ajax calls and turn your website into a highly dynamic environment
- Upload and manipulate files and images, validate user input, and secure your applications
-
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
-
Chapter 1 Answers
-
Chapter 2 Answers
-
Chapter 3 Answers
-
Chapter 4 Answers
-
Chapter 5 Answers
-
Chapter 6 Answers
-
Chapter 7 Answers
-
Chapter 8 Answers
-
Chapter 9 Answers
-
Chapter 10 Answers
-
Chapter 11 Answers
-
Chapter 12 Answers
-
Chapter 13 Answers
-
Chapter 14 Answers
-
Chapter 15 Answers
-
Chapter 16 Answers
-
Chapter 17 Answers
-
Chapter 18 Answers
-
Chapter 19 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


MySQL: An Ecosystem, Not Just a Company
Explore the power of MySQL at the O'Reilly MySQL Conference & Expo
April 12-15, 2010
Santa Clara, CA
- 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
-
Robin Nixon
Robin Nixon has worked with and written about computers since the early 1980s (his first computer was a Tandy TRS 80 Model 1 with a massive 4KB of RAM!). One of the web sites he developed presented the world's first radio station licensed by the music copyright holders. In order to enable people to continue to surf while listening, Robin also developed the first known pop-up windows. He has also worked full time for one of Britain's main IT magazine publishers, where he held several roles including editorial, promotions, and cover disc editing.
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.
|
©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |