SAMS Teach Yourself PHP in 24 Hours 2nd (2002).pdf

(2899 KB) Pobierz
993028810.006.png
Matt Zandstra
Teach Yourself
PHP
24 Hours
in
SECOND EDITION
800 East 96th St.,Indianapolis,Indiana,46240 USA
993028810.007.png 993028810.008.png 993028810.009.png 993028810.001.png 993028810.002.png
Sams Teach Yourself PHP in 24 Hours,
Second Edition
Copyright © 2002 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, photo-
copying, recording, or otherwise, without written permission from the pub-
lisher. 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.
A CQUISITIONS E DITOR
Scott D. Meyers
D EVELOPMENT E DITORS
Scott D. Meyers
Jill Hayden
M ANAGING E DITOR
Charlotte Clapp
I NDEXER
D&G Limited, LLC
P ROOFREADER
D&G Limited, LLC
T ECHNICAL E DITOR
Andrei Zmievski
T EAM C OORDINATOR
Amy Patton
I NTERIOR D ESIGNER
Gary Adair
C OVER D ESIGNER
Aren Howell
P RODUCTION
D&G Limited, LLC
International Standard Book Number: 0-672-32311-7
Library of Congress Catalog Card Number: 2001096665
Printed in the United States of America
First Printing: December 2001
04
03
02
01
4321
Trademarks
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.
Warning and Disclaimer
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 aris-
ing from the information contained in this book or from the use of the pro-
grams accompanying it.
993028810.003.png
Contents at a Glance
Introduction
1
Part I Getting Started
5
Hour 1
PHP: From Homepage to Portal
7
2 stalling PHP
15
3A First Script
27
Part II The Language
37
Hour 4
The Building Blocks
39
5
Going with the Flow
59
6
Functions
77
7A ays
99
8
Objects
119
Part III Working with PHP
147
Hour 9
Working with Forms
149
10
Working with Files
169
11
Working with DBA Functions
189
12
Database Integration—SQL
207
13
Beyond the Box
235
14
Images On-the-Fly
255
15
Working with Dates and Times
277
16
Working with Data
297
17
Working with Strings
319
18
Working with Regular Expressions
341
19
Saving State with Cookies and Query Strings
361
20
Saving State with Session Functions
379
21
Working with the Server Environment
393
22
PHP 4 and XML
407
993028810.004.png
Part IV Extending PHP
429
Hour 23
Smarty: A Template Engine
431
24
An Example: Page.inc.php
451
Glossary
473
Index
481
993028810.005.png
Zgłoś jeśli naruszono regulamin