Spring Into PHP 5
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Spring Into PHP 5
Spring Into PHP 5

Spring Into PHP 5

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

This is the PHP 5 entry in the new Spring Into series. It is written in the unique, structured style of Spring Into books. Each chapter begins with introductory text, followed by a single-page or facing-page tutorial. Every chapter is semi-autonomous, and focuses on an example or set of examples allowing the reader to quickly learn and apply. The discussions are to the point and emphasize results without extraneous coding. In 350 pages, Spring Into PHP 5 is designed to give professionals the skills they need to be productive with PHP 5--quickly--by covering dozens of chunks in rapid-fire format. PHP is clearly emerging as the most popular language for the creation of web applications. PHP 5 is the next major revision of the language. It provides a top-notch object system that behaves the way traditional heavyweight languages do, as well as real exceptions. In addition to these language additions, PHP 5 offers robust XML processing, improved MySQL and SQLite database support and a large number of improvements to areas of efficiency, extensibility and security. According to Netcraft's August 2004 survey, over 16 million domains run PHP. By comparison, Netcraft reports 2.5 million domains running ASP.Net.

Table of Contents:
Preface. About the Author. About the Series Editor. 1. Essential PHP.     Getting PHP.     Setting Up Your Development Environment.     Creating Your First PHP Script.     Running Your First PHP Script.     What If It Doesn’t Work?     Mixing In Some HTML.     How About Printing Out Some Text?     More Printing Power.     Printing “Here” Documents.     Running PHP on the Command Line.     Commenting Your Scripts.     Getting a Handle on Data: Variables.     Assigning Values to Variables.     Interpolating Variables in Strings.     Creating Variable Variables.     Creating Constants.     Handling Data Types.     Summary. 2. Gaining Control with Operators and Flow Control.     The Math Operators.     The Math Functions.     The Assignment Operators.     Incrementing and Decrementing.     Operator Precedence.     The Execution Operator.     String Operators.     Bitwise Operators.     Using if Statements.     The Comparison Operators.     Logical Operators.     Using else Statements.     Using elseif Statements.     The Ternary Operator.     Using switch Statements.     Working with for Loops.     Working with while Loops.     Working with do...while Loops.     Working with foreach Loops.     Breaking Out of Loops.     Skipping Interactions with continue.     Some Alternative Syntax.     Summary. 3. Handling Strings and Arrays.     Listing of String Functions.     Using the String Functions.     Formatting Strings.     Converting to and from Strings.     Creating Arrays.     Modifying Arrays.     Removing Array Elements.     Looping Over Arrays.     Listing of the Array Functions.     Sorting Arrays.     Navigating through Arrays.     Imploding and Exploding Arrays.     Extracting Variables from Arrays.     Merging and Splitting Arrays.     Comparing Arrays.     Manipulating the Data in Arrays.     Creating Multidimensional Arrays.     Looping Over Multidimensional Arrays.     Using the Array Operators.     Summary. 4. Breaking It Up: Functions.     Creating a Function.     Passing Data to Functions.     Passing Arrays to Functions.     Setting Up Default Argument Values.     Passing Arguments by Reference.     Creating Variable-Length Argument Lists.     Returning Values from Functions.     Returning Arrays from Functions.     Returning Lists from Functions.     Returning References from Functions.     Using Variable Scope.     Getting Global Access.     Using Static Variables.     Creating Variable Functions.     Creating Conditional Functions.     Creating Functions within Functions.     Using Include Files.     Handling Errors Returned by Functions.     Summary. 5. Handling HTML Controls in Web Pages.     Handling User Data with Web Forms.     Creating Text Fields.     Retrieving Data from Text Fields.     Creating Text Areas.     Creating Checkboxes.     Creating Radio Buttons.     Creating Listboxes.     Creating Hidden Controls.     Creating Password Controls.     Creating Image Maps.     Uploading Files.     Reading Uploaded Files.     Creating Buttons: Take 1.     Creating Buttons: Take 2.     Creating Buttons: Take 3.     Summary. 6. Creating Web Forms and Validating User Input.     Displaying All a Form’s Data At Once.     Useful Server Variables.     Useful HTTP Headers.     Determining Browser Type with HTTP Headers.     Redirecting Users with HTTP Headers.     Receiving Form Data in Custom Arrays.     Web Applications Using a Single PHP Page.     Validating User Data.     Validating Data: Requiring Data Entry.     Validating Data: Checking for Numbers.     Validating Data: Checking for Strings.     Removing HTML Tags.     Encoding HTML Tags.     Preserving Data.     Using JavaScript to Validate Data.     Using HTTP Authentication.     Summary. 7. Object Oriented Programming and File Handling.     Working with Classes and Objects.     Creating a Class.     Creating an Object.     Restricting Access to Properties and Methods.     Initializing Objects with Constructors.     Basing One Class on Another: Inheritance.     Using Protected Inheritance.     Overriding Methods.     Accessing Base Class Methods.     Opening a File: fopen.     Reading Lines of Text: fgets.     Reading Characters: fgetc.     Binary Reading: fread.     Reading a Whole File: file_get_contents.     Parsing a File: fscanf.     Writing to a File: fwrite.     Appending to a File: fwrite.     Writing the File at Once: file_put_contents.     Summary. 8. Working with Databases.     What Are Databases?     Some Basic SQL.     Setting Up Database Support in PHP.     Creating a Database Using MySQL.     Adding Data to the Database.     Accessing a MySQL Database.     Displaying a Data Table.     Updating Your Data.     Inserting New Data.     Deleting Data.     Creating a New Table.     Creating a Database.     Sorting Data.     Getting the PEAR DB Module.     Displaying a Table with DB.     Inserting New Data with DB.     Updating Data with DB.     Summary. 9. Cookies, Sessions, FTP, Email, and More.     Setting Cookies.     Getting Cookies.     Setting a Cookie’s Expiration Time.     Deleting Cookies.     Using FTP.     FTP: Getting a Directory Listing.     FTP: Downloading a File.     FTP: Uploading a File.     Sending Email.     Sending Email with Headers.     Sending Email with Attachments.     Working with Sessions.     Storing Session Data.     Creating a Hit Counter.     Using Sessions Without Cookies.     Removing Data in Sessions.     Summary. Appendix A: PHP Language Elements. Appendix B: PHP Function Reference. Index.


Best Sellers


Product Details
  • ISBN-13: 9780131498624
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Height: 100 mm
  • No of Pages: 360
  • Weight: 100 gr
  • ISBN-10: 0131498622
  • Publisher Date: 21 Apr 2005
  • Binding: Paperback
  • Language: English
  • Spine Width: 100 mm
  • Width: 100 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Spring Into PHP 5
Pearson Education (US) -
Spring Into PHP 5
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.

Spring Into PHP 5

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!