Visibooks Guide to PHP Basics (2006).pdf
(
9865 KB
)
Pobierz
The Visibooks Guide to PHP Basics
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................................. 39
Employ single variables ......................................................................41
Print quotation marks ..........................................................................52
Employ lists of variables .....................................................................62
Working with Numbers ................................. 71
Perform calculations............................................................................72
Increment/decrement ...........................................................................75
Generate random numbers .................................................................78
TABLE OF CONTENTS
i
User Functions ..............................................83
Create a user function ......................................................................... 84
Pass form inputs to a script................................................................ 89
Logic & Loops................................................95
Employ conditional logic .................................................................... 96
Employ looping .................................................................................. 118
Working With Files.......................................129
Create a text file ................................................................................. 130
Display files........................................................................................ 137
Append to files................................................................................... 140
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
Install an FTP program
1.
Open your Web browser and go to:
www.ipswitch.com
2.
Download and install WS_FTP Home.
WS_FTP
FTP stands for File Transfer Protocol, a way to transfer files between
computers over the Internet.
Using an FTP program is the most straightforward way to upload a
Web site to a Web server. WS_FTP is the most popular FTP program
used to upload and download Web pages.
The Home version is free to use for 30 days, and can be downloaded
at www.ipswitch.com.
2
LEARNING THE BASICS
Plik z chomika:
krupix.one
Inne pliki z tego folderu:
Apress Foundation PHP 5 for Flash (2005).pdf
(29809 KB)
Apress Beginning Google Maps Applications with PHP and Ajax, From Novice to Professional (2006).pdf
(15742 KB)
Apress Beginning PHP and PostgreSQL 8, From Novice to Professional (2006).pdf
(17128 KB)
Apress Building Online Communities with Drupal, phpBB and WordPress (2006).pdf
(14661 KB)
Apress Beginning CakePHP, From Novice to Professional (2008).pdf
(3856 KB)
Inne foldery tego chomika:
Android Application Development Video Guide Poradnik
Apple iOS 5 and 6 Development eBooks Collection [PDF]
ASP.NET eBooks Collection [PDF]
books
Complete IT Books Pack
Zgłoś jeśli
naruszono regulamin