Premier press PHP essentials 2nd edition

484 67 0
Premier press PHP essentials 2nd edition

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

PHP Essentials, Second Edition ISBN:1931841349 by Julie C Meloni Premier Press © 2003 (326 pages) This text serves as an introduction to the PHP scripting language and provides real-world examples of common uses from downloading, installing and configuring a Web server with PHP, to creating dynamic content via database interfaces and more Table of Contents Back Cover Table of Contents PHP Essentials, Second Edition Introduction Chapter 1 - Getting Started with PHP Chapter 2 - Basic PHP Techniques Chapter 3 - Working with Databases Creating and Populating Chapter 4 Database Tables Chapter 5 - User Authentication User Tracking and Chapter 6 - Session Management Advanced PHP Chapter 7 - Techniques: Web-Based Database Administration Advanced PHP Chapter 8 - Techniques: Working with Images Advanced PHP Chapter 9 - Techniques: Working with XML Essential PHP Language Appendix A Reference Appendix B - Getting Support Index List of Figures List of Tables PHP Essentials, Second Edition ISBN:1931841349 by Julie C Meloni Premier Press © 2003 (326 pages) This text serves as an introduction to the PHP scripting language and provides real-world examples of common uses from downloading, installing and configuring a Web server with PHP, to creating dynamic content via database interfaces and more Table of Contents Back Cover Back Cover Dive into the new edition of this popular guide to PHP With a true focus on the essentials, this book gives you the solid foundation in PHP programming you’re looking for And you don’t have to be a computer scientist or programmer to learn from it! The simple, learn-by-example format of PHP Essentials will allow you to quickly use the power of PHP to develop successful, dynamic Web sites Learn Faster Start with PHP basics like parsing, working with arrays, and displaying dynamic content Use PHP to plan and display an e-commerce product catalog and to ensure safe and secure shopping Master advanced PHP graphics techniques such as creating new images and scaling existing images Install a Web server—for Windows or Linux—and add database support Learn More Learn how to establish various database connections with PHP, including MySQL, PostgreSQL, and Oracle Use PHP to create a database table and edit your data Master user tracking and session management techniques Use the PHP Language Reference to answer your questions about syntax, variables, built-in functions, and more! About the Author Julie C Meloni is the technical director for i2i interactive—a multimedia company located in Los Altos, California She is also the author of several books and articles on Web-based programming languages and database topics, including the first edition of PHP Essentials from Premier Press PHP Essentials, Second Edition Julie Meloni Copyright © 2003 by Premier Press, a division of Course Technology All rights reserved No part of this book 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 written permission from Premier Press, except for the inclusion of brief quotations in a review The Premier Press logo and related trade dress are trademarks of Premier Press and may not be used without written permission PHP was written by the PHP Development Team, and released under the GNU General Public License (GPL) All other trademarks are the property of their respective owners Important: Premier Press cannot provide software support Please contact the appropriate software manufacturer's technical support line or Web site for assistance Premier Press and the author have attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer Information contained in this book has been obtained by Premier Press from sources believed to be reliable However, because of the possibility of human or mechanical error by our sources, Premier Press, or others, the Publisher does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from use of such information Readers should be particularly aware of the fact that the Internet is an everchanging entity Some facts may have changed since this book went to press ISBN: 1-931841-34-9 Library of Congress Catalog Card Number: 2003101207 Printed in the United States of America 03 04 05 06 07 BH 10 9 8 7 6 5 4 3 2 1 Premier Press, a division of Course Technology 25 Thomson Place Boston, MA 02210 Publisher Stacy L Hiquet Senior Marketing Manager Martine Edwards Marketing Manager Heather Hurley Manager of Editorial Services Heather Talbot Acquisitions Editor Todd Jenson Project Editor Estelle Manticas Technical Reviewer Michelle Jones Copy Editor Estelle Manticas Interior Layout Marian Hartsough Cover Designer Mike Tanamachi Indexer Sharon Shock Proofreader Sean Medlock Acknowledgments Thanks as always to the PHP Group, Zend Technologies, the Apache Software Foundation and MySQL AB for creating and maintaining such wonderful and accessible products for all users Thanks to every single PHP user and developer, because without you, I wouldn't have anything to write about Enormous thanks to everyone at i2i Interactive, for their never-ending support and encouragement About the Author JULIE MELONI is the technical director for i2i Interactive, a multimedia company located in Los Altos, California She's been developing Webbased applications since the Web first saw the light of day and remembers the excitement surrounding the first GUI Web browser She is the author of several books and articles on Web-based programming languages and database topics, and you can find translations of her work in many different languages, including Chinese, Danish, Finnish, Italian, Portuguese, Polish and even Serbian Index Z Z format, date function, 281 z format, date function, 281 Zend Web site, 308 List of Figures Chapter 1: Getting Started with PHP Figure 1.1: Successful Apache installation Figure 1.2: Apache Installer Welcome screen Figure 1.3: Provide information about your server Figure 1.4: Apache installer has finished Figure 1.5: The results of phpinfo() on a Linux/UNIX system Chapter 2: Basic PHP Techniques Figure 2.1: Bean Counter form Figure 2.2: Modified Bean Counter Form Figure 2.3: Redirection Menu Figure 2.4: Feedback form Figure 2.5: Feedback Form Results page Chapter 4: Creating and Populating Database Tables Figure 4.1: Step 1— Name that table Figure 4.2: Step 2— Form field definition table Figure 4.3: Preparing to submit the form Figure 4.4: Successful table creation Figure 4.5: The form to add a record Figure 4.6: Adding a sample product Figure 4.7: Successful record addition Figure 4.8: View records ordered by ITEM_ID (ascending) Figure 4.9: View records ordered by ITEM_PRICE (descending) Figure 4.10: View records with ITEM_PRICE greater than $10.00 Chapter 6: User Tracking and Session Management Figure 6.1: The Display Preferences form Figure 6.2: Using Courier as a font preference Figure 6.3: Using Wingdings as a font preference Chapter 7: Advanced PHP Techniques: WebBased Database Administration Figure 7.1: XYZ Company administration menu Figure 7.2: Add a new product to the XYZ Company product catalog Figure 7.3: Successful record addition Figure 7.4: Select the product to modify Figure 7.5: Product information pre-populates the modification form Figure 7.6: Verification of product modifications Figure 7.7: Select an item to delete Figure 7.8: Display product information to verify deletion Figure 7.9: Deletion confirmed! Figure 7.10: XYZ Company products listed by category Figure 7.11: All XYZ Company products listed alphabetically Figure 7.12: Individual product display template Figure 7.13: Product added to cart— user confirmation Figure 7.14: Product added to cart— show total cart items Chapter 8: Advanced PHP Techniques: Working with Images Figure 8.1: Basic rectangles Figure 8.2: Filled rectangles Figure 8.3: Basic pie chart Figure 8.4: A 3D pie chart Figure 8.5: The base image from which you'll create other images Figure 8.6: New image with ellipses Figure 8.7: PNG slices Figure 8.8: Copying images with alpha blending Figure 8.9: Copying images without alpha blending Chapter 9: Advanced PHP Techniques: Working with XML Figure 9.1: All XML elements displayed Figure 9.2: One collapsed element Figure 9.3: All of the XML elements in messages.xml Figure 9.4: Missing end tag error Figure 9.5: Mapped XML content List of Tables Chapter 3: Working with Databases Table 3.1: Students and Courses Table Table 3.2: The students Table Table 3.3: The students_courses Table Table 3.4: The courses Table Table 3.5: The New students_courses Table Table 3.6: The courses Table Table 3.7: The Instructors Table Chapter 7: Advanced PHP Techniques: WebBased Database Administration Table 7.1: MASTER_PRODUCTS Table Fields Appendix A: Essential PHP Language Reference Table A.1: Basic PHP Syntax Table A.2: Arithmetic Operators Table A.3: Comparison Operators Table A.4: Increment/Decrement Operators Table A.5: Logical Operators Table A.6: date() Function Formats Table A.7: fopen() Function Modes Table A.8: sprintf() Function Formatting Directives ... languages and database topics, including the first edition of PHP Essentials from Premier Press PHP Essentials, Second Edition Julie Meloni Copyright © 2003 by Premier Press, a division of Course Technology... List of Figures List of Tables PHP Essentials, Second Edition ISBN:1931841349 by Julie C Meloni Premier Press © 2003 (326 pages) This text serves as an introduction to the PHP scripting language and... system without written permission from Premier Press, except for the inclusion of brief quotations in a review The Premier Press logo and related trade dress are trademarks of Premier Press and may not be used without written permission

Ngày đăng: 26/03/2019, 17:11

Từ khóa liên quan

Mục lục

  • Table of Contents

  • Back Cover

  • PHP Essentials, Second Edition

  • Introduction

    • Getting Started with PHP

    • What Is PHP?

    • Is PHP Right for Me?

    • Chapter 1: Getting Started with PHP

      • Installing and Configuring PHP

      • Working with Other Web Servers

      • Chapter 2: Basic PHP Techniques

        • Understanding How PHP Is Parsed

        • PHP Variables and Operators

        • Chapter 3: Working with Databases

          • Basic Database Information

          • Understanding Database Normalization

          • Basic SQL Commands

          • Establishing a Database Connection with PHP

          • Chapter 4: Creating and Populating Database Tables

            • Inserting Data

            • Select and Display Data

            • Chapter 5: User Authentication

              • Basic HTTP Authentication

              • Database-Driven Authentication

              • Limit by IP Address

              • Chapter 6: User Tracking and Session Management

                • Session Handling

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan