BN.com Gift Guide

PHP: The Good Parts [NOOK Book]

Overview

Get past all the hype about PHP and dig into the real power of this language. This book explores the most useful features of PHP and how they can speed up the web development process, and explains why the most commonly used PHP elements are often misused or misapplied. You'll learn which parts add strength to object-oriented programming, and how to use certain features to integrate your application with databases.

Written by a longtime member of the PHP community, PHP: The Good ...

See more details below
PHP: The Good Parts

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.49
BN.com price
(Save 43%)$23.99 List Price

Overview

Get past all the hype about PHP and dig into the real power of this language. This book explores the most useful features of PHP and how they can speed up the web development process, and explains why the most commonly used PHP elements are often misused or misapplied. You'll learn which parts add strength to object-oriented programming, and how to use certain features to integrate your application with databases.

Written by a longtime member of the PHP community, PHP: The Good Parts is ideal for new PHP programmers, as well as web developers switching from other languages.

  • Become familiar with PHP's basic syntax, variables, and datatypes
  • Learn how to integrate the language with web pages
  • Understand how to use strings, arrays, and PHP's built-in functions
  • Discover the advantages of using PHP as an object-oriented language
  • Explore how PHP interacts with databases, such as SQLite and MySQL
  • Learn input- and output-handling best practices to prevent security breaches
Read More Show Less

Product Details

  • ISBN-13: 9781449390747
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 4/7/2010
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 178
  • Sales rank: 709,185
  • File size: 4 MB

Meet the Author

Peter MacIntyre lives and works in Charlottetown, Prince Edward Island, Canada. He has over 20 years of experience in the information technology industry, primarily in the area of software development.

Peter's technical skill set includes several client/server tools and relational database systems such as PHP, PowerBuilder, Visual Basic, Active Server Pages, and CA-Visual Objects.

Peter is certified by ZEND Corporation on PHP 4.x and has contributed writing material for Using Visual Objects (Que Corp.), Using PowerBuilder 5 (Que Corp.), ASP.NET Bible (Wiley Pub.), and Web Warrior Survey on Web Development Languages (Course Technology). Most recently he has co-authored the Zend Studio for Eclipse Developer's Guide - Addison-Wesley.

Peter is a former contributing editor and author to the on-line and in-print magazine called php|architect (www.phparch.com). He has also spoken several times at North American and International computer conferences including CA-World in New Orleans, USA; CA-TechniCon in Cologne, Germany; and CA-Expo in Melbourne, Australia.

Read More Show Less

Table of Contents

Dedication;
Foreword;
Preface;
Conventions Used in This Book;
Using Code Examples;
How to Contact Us;
SafariĀ® Books Online;
Acknowledgments;
Chapter 1: The Good Parts;
1.1 Why PHP?;
1.2 Basic PHP Setup;
Chapter 2: Casing the Joint;
2.1 Whitespace, Comments, and Basic Syntax;
2.2 Variables: Data Types, Loose Typing, and Scope;
2.3 Defined Constants;
2.4 Expressions;
2.5 Decisions, Decisions (Flow Control);
2.6 Integration with Web Pages;
Chapter 3: Functions (Doing It Once);
3.1 Parameter Passing;
3.2 Default Parameters;
3.3 Passing by Value Versus Passing by Reference;
3.4 Include and Require;
3.5 Built-In Functions Versus UDFs;
Chapter 4: Strings;
4.1 What Is a String?;
4.2 You Can Quote Me;
4.3 String Functions (Best of);
Chapter 5: Arrays;
5.1 Indexed Arrays;
5.2 Associative Arrays;
5.3 Arrays from Another Dimension;
5.4 Arrays Can Be Dynamic;
5.5 Traversing Arrays;
5.6 Array Functions (Best of);
Chapter 6: Objects;
6.1 Putting It into Practice;
6.2 Magic Methods;
6.3 $this;
6.4 Objects in Action;
6.5 Public, Protected, and Private;
6.6 Getters and Setters;
Chapter 7: Database Interaction;
7.1 MySQLi Object Interface;
7.2 Retrieving Data for Display;
7.3 PHP Data Objects;
7.4 PDO Prepared Statements;
7.5 Data Management on the Cheap;
7.6 File Management As a Database Alternative;
Chapter 8: PHP and Friends;
8.1 Email/SMS Generation;
8.2 PDF Generation;
8.3 Graphical Reports Generation;
Chapter 9: PHP Security;
9.1 Data Validation;
9.2 Escape Output;
9.3 Cross-Site Scripting (XXS) and SQL Injection;
9.4 Password Encryption Security;
9.5 Security Tips;
Chapter 10: PHP 5.3 Good Parts;
10.1 Namespaces;
10.2 Closures (Anonymous Functions);
10.3 NOWDOC;
10.4 goto Operator;
10.5 DateTime and DateTimeZone Classes;
10.6 Additional 5.3 Features;
Chapter 11: Advanced Goodness;
11.1 Regular Expressions;
11.2 SimpleXML;
11.3 Integrated Development Environments;
11.4 Primary Websites;
The Bad Parts;
goto;
Function Naming and Parameter Order;
Loose Typing;
Register Globals;
Is That All?;
Colophon;

Read More Show Less

Customer Reviews

Average Rating 4
( 3 )
Rating Distribution

5 Star

(1)

4 Star

(1)

3 Star

(1)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted December 25, 2012

    Hunter

    Thanks.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted December 6, 2011

    Great book for renewing your php skills!

    If you took a php class and needed to have a good book to remind you of some php this is the book!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 11, 2011

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)