• Complain

William Steinmetz - Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems

Here you can read online William Steinmetz - Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2008, publisher: No Starch Press, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
  • Author:
  • Publisher:
    No Starch Press
  • Genre:
  • Year:
    2008
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Instead of starting at Hello World, Wicked Cool PHP assumes that youre familiar with the language and jumps right into the good stuff. After you learn the FAQs of life-the most commonly wished for PHP scripts-youll work your way through smart configuration options and the art of forms, all the way through to complex database-backed scripts.

Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text. The 76 easily implemented scripts will also teach you how to:

Send and receive email notifications Track your visitors behavior with cookies and sessions Override PHPs default settings Manipulate dates, images, and text on the fly Harness SOAP and other web services Create an online poll, ecard delivery system, and blog

But its not all fun and games: Security is a big concern when programming any web application. So youll learn how to encrypt your confidential data, safeguard your passwords, and prevent common cross-site-scripting attacks. And youll learn how to customize all of the scripts to fit your own needs.

Dynamic Web content doesnt have to be difficult. Learn the secrets of the craft from two experienced PHP developers with Wicked Cool PHP.

William Steinmetz: author's other books


Who wrote Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems? Find out the surname, the name of the author of the book and a list of all author's works by series.

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Wicked Cool PHP
William Steinmetz
Brian Ward

Copyright 2008

No Starch Press WICKED COOL PHP Copyright 2008 by William Steinmetz with - photo 1

No Starch Press

WICKED COOL PHP.

Copyright 2008 by William Steinmetz with Brian Ward.

All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.

Printed on recycled paper in the United States of America

12 11 10 09 08

1 2 3 4 5 6 7 8 9

ISBN-10: 1-59327-173-5

ISBN-13: 978-1-59327-173-2

Publisher:

William Pollock

Production Editor:

Megan Dunchak

Cover and Interior Design:

Octopod Studios

Developmental Editor:

Tyler Ortman

Technical Reviewer:

Scott Gilbertson

Copyeditor:

Linda Recktenwald

Compositor:

Riley Hoffman

Proofreader:

Jeanne Hansen

Indexer:

Karin Arrigoni

For information on book distributors or translations, please contact No Starch Press, Inc. directly:

No Starch Press, Inc.

555 De Haro Street, Suite 250, San Francisco, CA 94107

phone: 415.863.9900; fax: 415.863.9950;

Library of Congress Cataloging-in-Publication Data

Steinmetz, William. Wicked cool PHP : real-world scripts that solve difficult problems / William Steinmetz and BrianWard. -- 1st ed. p. cm. Includes index. ISBN-13: 978-1-59327-173-2 ISBN-10: 1-59327-173-5 1. PHP (Computer program language) I. Ward, Brian, 1972- II. Title.QA76.73.P224S74 2008005.13'3--dc22 2005033702

No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.

The information in this book is distributed on an "As Is" basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it.

INTRODUCTION
This book is for the developer who has stumbled on to PHP and wants to know how - photo 2

This book is for the developer who has stumbled on to PHP and wants to know how to get things done. You should know the basics of programming, and chances are you've seen many online code samples. But you may be wondering why some examples are much more complicated than others when they do the same thing.

Care has been taken to keep the examples in this book as simple as possible and to explain as much as possible about every piece of code. To keep client and server code confusion to a minimum, there isn't much JavaScript here. Everyone's impatient, so , "PHP Security," deals with keeping your scripts secure.

, "Working with Files," deals with file manipulation.

With these fundamentals covered, , "User and Session Tracking," covers the details of session tracking and management. With multiple users on a complex website, it's important to keep track of what each user is doing so that one user's session doesn't interfere with another's.

, "Working with Images," cover email and image manipulation, respectively. These tasks are often ill-suited for webserver scripts, so the chapters describe relatively lightweight tasks that can add significant value to your site.

In , "Using cURL to Interact with Web Services," you'll learn how to make your server interact with web services on other sites via XML.

Finally, , "Intermediate Projects," contains three fun little projects that can be incorporated into larger websites. These projects build on what you've learned elsewhere in the book.

Chapter 1. THE FAQS OF LIFETHE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW
The scripts contained in this chapter answer several questions that clog PHP - photo 3

The scripts contained in this chapter answer several questions that clog PHP forums and discussion groups all over the world. They include the following:

  • How do I add Previous/Next links to my shopping cart?

  • Is there an easy way to make every other row in my table a different color?

  • I have a big array that I need to sorthelp!

  • What's the best templating system to make the same HTML enclose my data on every page?

Although there are more complicated scripts later in this book, and many others that you may find more valuable, these scripts answer the questions that I see again and again. The only thing these beginning scripts have in common is that theyre either the things that everyone should know or the things that everyone wants to know. Hand this chapter to a beginning PHP programmer you love. Shell thank you for it.

Note

If you're not afraid to start root will also help the beginning PHP scripter and can make life a lot easier for the midlevel PHP programmer. You might want to go there next .

#1: Including Another File as a Part of Your Script

Most serious applications have a core library of variables and scripts that are used on almost every page. For example, if you're writing a shopping cart that connects to a MySQL database, you could declare the MySQL login name and password on each page of your cart. But what if you need to change the password? Changing and uploading every file in your shopping cart could become a huge issue.

Rather than declaring the password in each of your page scripts, you can store that name and password in a separate file. You can then include that file as a part of your script, and whatever variables you declare in that file will be declared in your script!

Furthermore, you can store long scripts or functions in a separate file and include them only when you need them. For example, the function that gets real-time UPS shipping quotes is 24KB worth of XML processing goodness, but you use it only when someone chooses UPS as a shipping option. Why not store it in ups_ship_quotes.php and call it only when necessary?

In fact, almost all heavy-duty PHP applications have a file called something like config.php, which declares the critical variables that every page needs to know, such as the MySQL name and password. Those same applications also store frequently used scripts in different directories. Programmers then mix and match, taking the check-to-see-if-a-user-is-logged-in script from one directory, including the get-the-relevant-data-from-the-database script from another directory, and writing a central script that screens the data based on whether the user is logged in or not.

And here's how to do it.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems»

Look at similar books to Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems»

Discussion, reviews of the book Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.