A Programmer’s Introduction to PHP 4.0 pptx

424 282 0
A Programmer’s Introduction to PHP 4.0 pptx

Đ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

A Programmer’s Introduction to PHP 4.0 W. J. Gilmore Gilmore_00FM 12/5/00 2:19 PM Page i A Programmer’s Introduction to PHP 4.0 Copyright ©2001 by W. J. Gilmore 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, record- ing, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN (pbk): 1-893115-85-2 Printed and bound in the United States of America 12345678910 Trademarked names may appear in this book. Rather than use a trademark sym- bol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Editorial Directors: Dan Appleman, Gary Cornell, Karen Watterson Technical Editor: Brian Wilson Project Editor: Carol A. Burbo Developmental Editor and Indexer: Valerie Perry Copy Editor: Beverly McGuire Compositor: Susan Glinert Artist and Cover and Part Opener Designer: Karl Miyajima Distributed to the book trade in the United States by Springer-Verlag New York, Inc.,175 Fifth Avenue, New York, NY, 10010 and outside the United States by Springer-Verlag GmbH & Co. KG, Tiergartenstr. 17, 69112 Heidelberg, Germany In the United States, phone 1-800-SPRINGER; orders@springer-ny.com; http://www.springer-ny.com Outside the United States, contact orders@springer.de; http://www.springer.de; fax +49 6221 345229 For information on translations, please contact Apress directly at 901 Grayson Street, Suite 204, Berkeley, CA, 94710 Phone: 510-549-5931; Fax: 510-549-5939; info@apress.com; http://www.apress.com The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author nor Apress 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 this work. Gilmore_00FM 12/5/00 2:19 PM Page ii For my mother and father, Judith and John Gilmore. Gilmore_00FM 12/5/00 2:19 PM Page iii [...]... Chapters 1 through 8 Chapter 1, “An Introduction to PHP, ” introduces PHP, its history, and its key features Instructions regarding how to install and configure PHP and Apache are also provided The chapter concludes with a survey of the rudimentary PHP syntax needed to create a basic script Chapter 2, “Variables and Data Types,” describes the various data formats supported by PHP and how variables are... static Apache module, and the dynamic Apache module As a non-Windows user, chances are you will not want to build PHP as a CGI binary Furthermore, there are several advantages to building PHP as a server module, therefore I'll concentrate solely on building PHP both as a static and a dynamic module As it relates to installation, the main difference between the two is that any subsequent changes to. .. using PHP to create dynamic Web sites Dynamic content, link creation, and basic page templating strategies are covered in this chapter Chapter 10, “Forms,” describes how PHP can work with HTML forms to gather, display, and manipulate user input Chapter 11, “Databases,” highlights PHP s vast support for database servers, focusing on the MySQL database to show how PHP can act as an efficient interface... information regarding PHP s configuration Congratulations, you’ve successfully installed the Dynamic Apache Module Installation on Windows 95/98/NT If you have installed an application on the Windows operating system, you have probably found it to be very easy Click a few buttons, agree to a few statements, and the application is installed And so is the case with the installation of Apache and PHP on a. .. between a database and the Web Chapter 12, “Templates,” introduces advanced page templating strategies Chapter 13, “Cookies and Session Tracking,” shows how PHP can effectively track site visitors Part III, “Advanced PHP, ” introduces a few of the more advanced implementations of PHP and includes Chapters 14 through 16 Chapter 14, PHP and XML,” introduces the reader to XML and shows how PHP can parse and... section, aptly titled “Characteristics of PHP. ” Characteristics of PHP As you may have realized, the PHP language revolves around the central theme of practicality PHP is about providing the programmer with the necessary tools to get the job done in a quick and efficient fashion Five important characteristics make PHP s practical nature possible: • Familiarity • Simplicity 5 Gilmore_01 12/5/00 10:22 AM Page... development (that is, HTML), PHP can also serve as a valuable tool for creating and managing dynamic content, embedded directly beside the 4 Gilmore_01 12/5/00 10:22 AM Page 5 An Introduction to PHP likes of JavaScript, Stylesheets, WML (Wireless Markup Language) and many other useful languages Providing hundreds of predefined functions, PHP is capable of handling just about anything a developer can dream of... configured PHP can be run in what is known as safe mode, which can 6 Gilmore_01 12/5/00 10:22 AM Page 7 An Introduction to PHP limit users’ attempts to exploit the PHP implementation in many important ways Limits can also be placed on maximum execution time and memory usage, which if not controlled can have adverse affects on server performance Much as with a cgi-bin folder, administrators can also place restrictions... is explained in “Downloading and Installing PHP/ Apache,” later in this chapter Immediately preceding that section are a few excerpts from prominent users testifying to the power of PHP, followed by a detailed synopsis of the language and its history However, before diving into the installation process, take a moment to read more about the characteristics of PHP that make it such a powerful language This... Installing PHP as an Apache module is rather simple I’ll take you through each step here: 1 Change location to the Apache directory: cd apache_1.3.x 2 Configure Apache You can use any path you like Keep in mind that a slash does not follow the pathname: /configure —prefix=[path] 3 Change the location to the PHP directory and configure, build, and install the distribution The option with-config-file-path . A Programmer’s Introduction to PHP 4. 0 W. J. Gilmore Gilmore _00 FM 12/5 /00 2:19 PM Page i A Programmer’s Introduction to PHP 4. 0 Copyright © 200 1 by W. J. Gilmore All rights reserved. No part. PM Page xvi Part 1 The Basics Gilmore _01 12/5 /00 10: 22 AM Page 1 Gilmore _01 12/5 /00 10: 22 AM Page 2 CHAPTER 1 An Introduction to PHP The past five years have been fantastic in terms of the explosive. how PHP can work with HTML forms to gather, display, and manipulate user input. Chapter 11, “Databases,” highlights PHP s vast support for database servers, focusing on the MySQL database to show

Ngày đăng: 27/06/2014, 08:20

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

Tài liệu liên quan