tailieunhanh - SAMS Teach Yourself PHP4 in 24 Hours

This is a book about PHP, the open source Web scripting language that has joined Perl, ASP, and Java on the select list of languages that can be used to create dynamic online environments. It is also a book about programming. In the space available, it is neither possible to create a complete guide to programming in PHP nor to cover every function and technique that PHP offers. Nevertheless, whether you are an experienced programmer considering a move to PHP or a newcomer to scripting, the steps in this book should provide enough information to get your journey off to a good start | 1 2 SAMS Teach Yourself PHP4 in 24 Hours Matt Zandstra sAms A Division of Macmillan USA 201 West 103rd St. Indianapolis Indiana 46290 . USA Copyright 2000 by Sams Publishing All rights reserved. No part of this book shall be reproduced stored in a retrieval system or transmitted by any means electronic mechanical photocopying recording or otherwise without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein. International Standard Book Number 0-672-31804-0 Library of Congress Catalog Card Number 99-65599 Printed in the United States of America First Printing June 2000 03 02 01 00 4 3 2 1 All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. This publication was produced using the Advent 3B2 Publishing System. Every effort has been made to make this book as complete and as accurate as possible but no warranty or fitness is implied. The information provided is on an as is basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the programs accompanying it. Dedication For my father Who would have approved. About the Author Matt Zandstra matt@ runs Corrosive Web Design http with his business partner Max Guglielmino. A compulsive scripter he has developed software in PHP Java JavaScript Perl Lingo and AppleScript. Matt 3