PHP Basics In Pictures.pdf
(
2480 KB
)
Pobierz
PHP Basics
In Pictures
by Paul Gruhn
www.inpics.net
PHP Basics In Pictures
Copyright
This book is provided under a Creative Commons license at:
creativecommons.org/licenses/by-nc-nd/2.5/
You are free to download, copy, and share this electronic book with others.
However, it is illegal to sell this book, or change it in any way.
If you’d like to sell or change it, just contact us at contact@inpics.net.
Trademarks and Disclaimer
Visibooks™ is a trademark of Visibooks, LLC. All brand and product names in this book
are trademarks or registered trademarks of their respective companies.
Visibooks™ makes every effort to ensure that the information in this book is accurate.
However, Visibooks™ makes no warranty, expressed or implied, with respect to the
accuracy, quality, reliability, or freedom from error of this document or the products
described in it. Visibooks™ makes no representation or warranty with respect to this
book’s contents, and specifically disclaims any implied warranties or fitness for any
particular purpose. Visibooks™ disclaims all liability for any direct, indirect,
consequential, incidental, exemplary, or special damages resulting from the use of the
information in this document or from the use of any products described in it. Mention of
any product does not constitute an endorsement of that product by Visibooks™. Data
used in examples are intended to be fictional. Any resemblance to real companies,
people, or organizations is entirely coincidental.
ISBN 1597061093
Table of Contents
Learning the Basics ........................................ 1
Install an FTP program ..........................................................................2
Create a simple script ..........................................................................12
Upload a script .....................................................................................18
Run a script from a Web page.............................................................22
Insert comments...................................................................................26
Format output with HTML....................................................................32
Working with Variables................................. 37
Employ single variables ......................................................................39
Print quotation marks ..........................................................................50
Employ lists of variables .....................................................................60
Working with Numbers ................................. 67
Perform calculations............................................................................68
Increment/decrement ...........................................................................70
Increment/decrement ...........................................................................71
Generate random numbers .................................................................74
TABLE OF CONTENTS
i
User Functions ..............................................77
Create a user function ......................................................................... 78
Pass form inputs to a script................................................................ 83
Logic & Loops................................................87
Employ conditional logic .................................................................... 88
Employ looping.................................................................................. 110
Working With Files.......................................116
Create a text file ................................................................................. 117
Display files........................................................................................ 124
Append to files................................................................................... 127
ii
TABLE OF CONTENTS
Learning the Basics
In this section, you’ll learn how to:
•
•
•
•
•
•
Install an FTP program
Create a simple script
Upload a script
Run a script from a Web page
Insert comments
Format output with HTML
LEARNING THE BASICS
1
Plik z chomika:
kendzior21
Inne pliki z tego folderu:
Apress.Beginning.PHP.and.MySQL.3rd.Edition.Mar.2008.pdf
(17438 KB)
Visibooks.The.Visibooks.Guide.to.PHP.Basics.Mar.2006.pdf
(9865 KB)
OReilly.Learning.PHP.and.MySQL.2nd.Edition.Aug.2007.pdf
(6395 KB)
McGraw.Hill.PHP.Programming.Solutions.Jun.2007.007148745X.pdf
(4785 KB)
PHP Cookbook (2002).pdf
(2673 KB)
Inne foldery tego chomika:
10 php ebooks(NEW!!!)
Learn PHP in 24 Hours
PHP Arhitect - March 2007
PHP LAMP MySQL and PostgreSQL Books Collection
PHP MegaPack - iNT
Zgłoś jeśli
naruszono regulamin