ptg16476052
xx Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day
Promoting Your Site Through Social Media ................................................... 640
Creating a Facebook Page for Your Site ........................................................ 642
Site Indexes and Search Engines .................................................................. 643
Business Cards, Letterhead, Brochures, and Advertisements ............................. 644
Finding Out Who’s Viewing Your Web Pages ........................................................ 644
Log Files ................................................................................................. 644
Google Analytics ...................................................................................... 645
Summary .......................................................................................................... 648
Workshop ......................................................................................................... 648
Q&A ...................................................................................................... 649
Quiz ....................................................................................................... 649
Quiz Answers ........................................................................................... 649
Exercises ................................................................................................. 650
LESSON 24: Taking Advantage of the Server 651
How PHP Works ............................................................................................... 652
Getting PHP to Run on Your Computer ................................................................. 653
The PHP Language ............................................................................................ 654
Comments ............................................................................................... 654
Variables ................................................................................................. 655
Arrays ..................................................................................................... 656
Strings .................................................................................................... 659
Conditional Statements .............................................................................. 661
PHP Conditional Operators ......................................................................... 662
Loops .............................................................................................................. 662
foreach Loops ......................................................................................... 663
for Loops................................................................................................ 664
while and do...while Loops ..................................................................... 664
Controlling Loop Execution ........................................................................ 665
Built-In Functions .............................................................................................. 666
User-Defined Functions ...................................................................................... 666
Returning Values ...................................................................................... 667
Processing Forms ............................................................................................... 668
Handling Parameters with Multiple Values .................................................... 669
Presenting the Form ................................................................................... 674
Using PHP Includes ........................................................................................... 678
Choosing Which Include Function to Use ...................................................... 680