Upgrading to PHP 5
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Upgrading to PHP 5: (O'Reilly Ser.)
Upgrading to PHP 5: (O'Reilly Ser.)

Upgrading to PHP 5: (O'Reilly Ser.)


     0     
5
4
3
2
1



International Edition


X
About the Book

If you're using PHP 4, then chances are good that an upgrade to PHP 5 is in your future. The more you've heard about the exciting new features in PHP 5, the sooner that upgrade is probably going to be. Although an in-depth, soup-to-nuts reference guide to the language is good to have on hand, it's not the book an experienced PHP programmer needs to get started with the latest release. What you need is a lean and focused guide that answers your most pressing questions: what's new with the technology, what's different, and how do I make the best use of it? In other words, you need a copy of Upgrading to PHP 5. This new book is targeted toward PHP developers who are already familiar with PHP 4. Rather than serve as a definitive guide to the entire language, the book zeroes in on PHP 5's new features, and covers these features definitively. You'll find a concise appraisal of the differences between PHP 4 and PHP 5, a detailed look at what's new in this latest version, and you'll see how PHP 5 improves on PHP 4 code. See PHP 4 and PHP 5 code side-by-side, to learn how the new features make it easier to solve common PHP problems. Each new feature is shown in code, helping you understand why it's there, when to use it, and how it's better than PHP 4. Short, sample programs are included throughout the book. Topics covered in Upgrading to PHP 5 include: The new set of robust object-oriented programming features; An improved MySQL extension, supporting MySQL 4.1, prepared statements, and bound parameters; Completely rewritten support for XML: DOM, XSLT, SAX, and SimpleXML; Easy web services with SOAP; SQLite, an embedded database library bundled with PHP 5; Cleaner error handling with exceptions; Other new language features, such as iterators, streams, and more. Upgrading to PHP 5 won't make you wade through information you've covered before. Written by Adam Trachtenberg, coauthor of the popular PHP Cookbook, this book will take you straight into the heart of all that's new in PHP 5. By the time you've finished, you'll know PHP 5 in practice as well as in theory.

Table of Contents:
Preface 1. Introduction Why PHP 5? What's New in PHP 5?; Installing and Configuring PHP 5 2. Object-Oriented Programming; What Is Object-Oriented Programming? Memory Management; Basic Classes Class Intermediates Inheritance Magical Methods 3. MySQL Installing and Configuring Procedural Interface Before and After: Connecting to the Database Server; Object-Oriented Interface Before and After: Querying and Retrieving Data with Prepared Statements Before and After: Subselects Transactions Before and After: Making Multiple Queries Securing Connections with SSL Porting Code and Migrating Databases 4. SQLite SQLite Basics Alternate SQLite Result Types Object-Oriented Interface Indexes, Error Handling, and In-Memory Tables Transactions User-Defined Functions 5. XML XML Extensions in PHP 5 Installing XML and XSLT Support DOM SimpleXML Converting Between SimpleXML and DOM Objects Before and After: Reading XML into a Tree Before and After: Searching XML with XPath Reading XML as Events with SAX; Before and After: Creating New XML Documents Before and After: Transforming XML with XSLT Validating Against a Schema; 6. Iterators and SPL Before and After: Using Iterators Implementing the Iterator Interface MySQL Query Iterator; Chaining Iterators SimpleXML Iterator Before and After: Recursive Directory Iteration Implementing the RecursiveIterator Interface Array and Object Property Iteration Redefining Class Iteration Iterator and SPL Classes and Interfaces 7. Error Handling and Debugging Before and After: Handling Errors; The Benefits of Exceptions System Exceptions The Exception Class User Exceptions Setting a Custom Exception Handler; Processing Errors with a Custom Handler Debugging Functions; 8. Streams, Wrappers, and Filters Using the Streams API; Wrapper Overview Wrapper Details Creating Wrappers; Filtering Streams Creating Filters 9. Other Extensions; SOAP Tidy Reflection 10. PHP 5 in Action Defining Your Database Schema The Person Class The addressBook Class; The Template Class Assembling the Application Wrap-Up and Future Directions A. Introduction to XML B. Additional New Features and Minor Changes C. Installing PHP 5 Alongside PHP 4; Index

About the Author :
Adam Trachtenberg has an MBA from Columbia Business School. At business school, he focused on general management and operations, with an emphasis on the field of technology. Adam also has a BA from Columbia University. As an undergraduate, he majored in mathematics and his other studies included computer science and Chinese. Before returning to school, he co-founded and served as Vice President for Development at two companies, Student.Com and TVGrid.Com. At both firms, he led the front- and middle-end web site design and development, worked on corporate planning and strategy, and served as liaison between the product and marketing teams. During study breaks, Adam enjoys playing squash, reading fiction, and eating in New York City's many wonderful restaurants. He wishes he was a better at playing pool, knew the constellations, and was handy around the house.


Best Sellers


Product Details
  • ISBN-13: 9780596006365
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 222 mm
  • No of Pages: 330
  • Returnable: Y
  • Series Title: O'Reilly Ser.
  • Width: 146 mm
  • ISBN-10: 0596006365
  • Publisher Date: 24 Aug 2004
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Returnable: Y
  • Spine Width: 25 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Upgrading to PHP 5: (O'Reilly Ser.)
O'Reilly Media -
Upgrading to PHP 5: (O'Reilly Ser.)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Upgrading to PHP 5: (O'Reilly Ser.)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!