Variables illustration

The current date and time is July 30th, 2010 5:28:PM

Companion Web Site

Larry Ullman has a web site devoted to PHP for the World Wide Web: Second Edition at this location.

It is intended as a supplement /complement to the book and has many helpful resources.

The Book

Variable image

PHP for the World Wide Web: Second Edition written by Larry Ullman

The syllabus below represents the scope and sequence for the work we will be doing together in PHP for the World Wide Web: Second Edition. I am looking forward to working with my friends at our new site, Hello World. I know I will receive support and help as we continue our journey to learn PHP which began with Bean Fairbanks at LVS. And, I hope to be a source of support to my fellow PHP trekkers.

Visit Bean's Blog and learn more about what is happening at LVS in the PHP and MySQL areas. Try Bean's PHP101 class.

For this site, I have used colors similar to the blocks of color on the book cover. I should also note that the page does not pass CSS validation because of the Dreamweaver Spry Menu Bar and an item or two (the same errors repeat!)in the set up of the 3column hybrid. Adobe is working to correct that!

Syllabus

Chapter 1: Getting Started With PHP

  • Basic XHTML Syntax
  • Basic PHP Syntax
  • Testing Your Script
  • Sending Text to the Browser
  • Sending HTML to the Browser
  • Using White Space in PHP and HTML
  • Adding Comments to Your Scripts

Chapter 2: Variables

  • What are Variables?
  • Variable Syntax
  • Types of Variables
  • Assigning Values to Variables
  • Understanding Quotation Marks

Chapter 3: HTML Forms and PHP

  • Creating a Simple Form
  • Using GET or POST
  • Receiving Data from a Form in PHP
  • Displaying Errors
  • Error Reporting
  • The Register Globals Problem
  • Manually Sending Data to a Page

Chapter 4: Using Numbers

  • Creating the Form
  • Adding, Subtracting, Multiplying, and Dividing
  • Formatting Numbers
  • Incrementing and Decrementing a Number
  • Creating Random Numbers

Chapter 5: Using Strings

  • Creating the HTML Form
  • Connecting Strings (Concatenation)
  • Combating Magic Quotes
  • HTML and PHP
  • Encoding and Decoding Strings
  • Replacing Parts of a String
  • Other String Functions

Chapter 6: Control Structures

  • Creating the HTML Form
  • The if Conditional
  • Using Else
  • More Operators
  • Using elseif
  • The Switch Conditional
  • The For Loop

Chapter 7: Using Arrays

  • What Is an Array?
  • Creating an Array
  • Adding Items to an Array
  • Accessing Array Elements
  • Creating Multidimensional Arrays
  • Sorting Arrays
  • Transforming Between Strings and Arrays
  • Creating an Array from a Form

Chapter 8: Creating Web Applications

  • Creating Templates
  • Using External Files
  • Using Constants
  • Working with the Date and Time
  • Handling HTML Forms with PHP, Revisited
  • Making Forms Sticky
  • Sending Email
  • Output Buffering
  • Manipulating HTTP Headers

Chapter 9: Cookies and Sessions

  • What Are Cookies?
  • Creating Cookies
  • Reading from Cookies
  • Adding Parameters to a Cookie
  • Deleting a Cookie
  • What Are Sessions?
  • Creating a Session
  • Accessing Session Variables
  • Deleting a Session

Chapter 10: Creating Functions

  • Creating and Using Simple Functions
  • Creating and Calling Functions that Take Arguments
  • Setting Default Argument Values
  • Creating and Using Functions that Return a Value
  • Understanding Variable Scope

Chapter 11: Files and Directories

  • File Permissions
  • Writing to Files
  • Locking Files
  • Reading from Files
  • Handling File Uploads
  • Navigating Directories
  • Creating Directories
  • Reading Files Incrementally

Chapter 12: Intro to Databases

  • Introduction to SQL
  • Connecting to MySQL
  • MySQL Error Handling
  • Creating and Selecting a Database
  • Creating a Table
  • Inserting Data into a Database
  • Retrieving Data from a Database
  • Deleting Data in a Database
  • Updating Data in a Database

Chapter 13: Regular Expressions

  • What are Regular Expressions?
  • Matching Patterns
  • Using Literals
  • Using Metacharacters
  • Using Quantifiers
  • Using Classes
  • Matching and Replacing Patterns

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


<?php 
/* My Variables for the study group site */
$book "<u>PHP for the World Wide Web: Second Edition</u>";
$author "Larry Ullman";
$myName "Joanne Johnson";
$pageTitle "PHP Study Group ";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $pageTitle ?></title>


<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="common/ullman.css" rel="stylesheet" type="text/css" />
<link href="../SpryAssets/ullmanMenu.css" rel="stylesheet" type="text/css" />
</head>

<body class="thrColHybHdr">

<div id="container">
  <div id="header">
    <h1><?php echo $pageTitle ?></h1>
    <p>Presented by <?php echo $myName ?><br />
    Started January, 2009<br />
    </p>
    <br />
  <!-- end #header --></div>
  <div id="sidebar1">
    <?php include("includes/nav.php"); ?>
    
    <h3>&nbsp;</h3>
    <p>&nbsp;</p>
    <p><img src="images/var.jpg" alt="Variables illustration" width="150" height="400" /></p>
    <p>The current date and time is <?php echo date ("F jS, Y g:i:A");?></p>
    
  <!-- end #sidebar1 --></div>
  <div id="sidebar2">
    <h3>Companion Web Site</h3>
    <p>Larry Ullman has a web site devoted to <?php echo $book ?> at this 
    <a href="http://www.dmcinsights.com/phpvqs2/" target="_blank">location</a>.</p>
    <p>It is intended as a supplement /complement to the book and has many 
    helpful resources.</p>
    <ul>
      <li><a href="http://www.dmcinsights.com/phpvqs2/errata.php">Errata</a></li>
      <li><a href="http://www.dmcinsights.com/phorum/list.php?10" target="_blank">Forum</a></li>
      <li><a href="http://blog.dmcinsights.com/" target="_blank">L. Ullman Blog</a></li>
      <li><a href="http://www.dmcinsights.com/bk_pages/faq.php?i=phpvqs2" target="_parent">FAQ</a></li>
      <li><a href="http://de.php.net/manual/en/manual.php" target="_blank">PHP Manual</a></li>
    </ul>
    <p><img src="images/book.jpg" alt="The Book" width="162" height="203" /></p>
    
    <div align="center"><img src="images/var.jpg" alt="Variable image" width="150" height="400" />
      </div>
  <!-- end #sidebar2 --></div>
  
  
    <div id="mainContent">
      <center><h3><?php echo $book ?> <span class="spanTitle" >written by</span> 
      <?php echo $author ?></h3> </center>
      <p>The syllabus below represents the scope and sequence for 
        the work we will be doing together in <?php echo $book ?>
        I am looking forward to working with my friends at 
        our new site, <a href="http://www.lzydaz.com/phpBB3/index.php" target="_blank">Hello World</a>. 
        I know I will receive support and help as we continue our journey to learn PHP which 
      began with Bean Fairbanks at LVS. And, I hope to be a source of support to my fellow PHP trekkers.</p>
      <p>Visit <a href="http://lvsonline.com/online-mysql-php-classes/" target="_blank">Bean's Blog</a> and learn more about what is 
        happening at LVS in the PHP and MySQL areas. 
        Try Bean's <a href="http://www.lvsassociates.com/register/product_info.php?cPath=5_18&amp;products_id=136" target="_blank">PHP101</a> class.</p>
      <p>For this site, I have used colors similar to the blocks of color on the book cover. I should also note that the page does not pass 
        CSS validation because of the Dreamweaver Spry Menu Bar and an item or two (the same errors repeat!)in the set up of the 3column hybrid. 
      Adobe is working to correct that! </p>
      <h3>Syllabus</h3>
      <div class="syllabus1">
        <h4>Chapter 1: Getting Started With PHP</h4>
        <ul>
          <li>Basic XHTML Syntax</li>
      <li>Basic PHP Syntax</li>
      <li>Testing Your Script</li>
      <li>Sending Text to the Browser</li>
      <li>Sending HTML to the Browser</li>
      <li>Using White Space in PHP and HTML</li>
      <li>Adding Comments to Your Scripts</li>
      </ul>
      <h4>Chapter 2: Variables</h4>
      <ul>
        <li>What are Variables?</li>
      <li>Variable Syntax</li>
      <li>Types of Variables</li>
      <li>Assigning Values to Variables</li>
      <li>Understanding Quotation Marks</li>
      </ul>
      <h4>Chapter 3: HTML Forms and PHP</h4>
      <ul>
        <li>Creating a Simple Form</li>
      <li>Using GET or POST</li>
      <li>Receiving Data from a Form in PHP</li>
      <li>Displaying Errors</li>
      <li>Error Reporting</li>
      <li>The Register Globals Problem</li>
      <li>Manually Sending Data to a Page</li>
      </ul>
      <h4>Chapter 4: Using Numbers</h4>
      <ul>
        <li>Creating the Form</li>
      <li>Adding, Subtracting, Multiplying, and Dividing</li>
      <li>Formatting Numbers</li>
      <li>Incrementing and Decrementing a Number</li>
      <li>Creating Random Numbers</li>
      </ul>
      <h4>Chapter 5: Using Strings</h4>
      <ul>
        <li>Creating the HTML Form</li>
      <li>Connecting Strings (Concatenation)</li>
      <li>Combating Magic Quotes</li>
      <li>HTML and PHP</li>
      <li>Encoding and Decoding Strings</li>
      <li>Replacing Parts of a String</li>
      <li>Other String Functions</li>
      </ul>
      <h4>Chapter 6: Control Structures</h4>
      <ul>
        <li>Creating the HTML Form</li>
      <li>The if Conditional</li>
      <li>Using Else</li>
      <li>More Operators</li>
      <li>Using elseif</li>
      <li>The Switch Conditional</li>
      <li>The For Loop</li>
      </ul>
      <h4>Chapter 7: Using Arrays</h4>
      <ul>
        <li>What Is an Array?</li>
      <li>Creating an Array</li>
      <li>Adding Items to an Array</li>
      <li>Accessing Array Elements</li>
      <li>Creating Multidimensional Arrays</li>
      <li>Sorting Arrays</li>
      <li>Transforming Between Strings and Arrays</li>
      <li>Creating an Array from a Form</li>
      </ul>
     </div>
      <div class="syllabus2"> 
        <h4>Chapter 8: Creating Web Applications</h4>
      <ul>
        <li>Creating Templates</li>
      <li>Using External Files</li>
      <li>Using Constants</li>
      <li>Working with the Date and Time</li>
      <li>Handling HTML Forms with PHP, Revisited</li>
      <li>Making Forms Sticky</li>
      <li>Sending Email</li>
      <li>Output Buffering</li>
      <li>Manipulating HTTP Headers</li>
      </ul>
  
    <h4>Chapter 9: Cookies and Sessions</h4>
      <ul>
        <li>What Are Cookies?</li>
      <li>Creating Cookies</li>
      <li>Reading from Cookies</li>
      <li>Adding Parameters to a Cookie</li>
      <li>Deleting a Cookie</li>
      <li>What Are Sessions?</li>
      <li>Creating a Session</li>
      <li>Accessing Session Variables</li>
      <li>Deleting a Session</li>
      </ul>
      <h4>Chapter 10: Creating Functions</h4>
      <ul>
        <li>Creating and Using Simple Functions</li>
      <li>Creating and Calling Functions that Take Arguments</li>
      <li>Setting Default Argument Values</li>
      <li>Creating and Using Functions that Return a Value</li>
      <li>Understanding Variable Scope</li>
      </ul>
      <h4>Chapter 11: Files and Directories</h4>
      <ul>
        <li>File Permissions</li>
      <li>Writing to Files</li>
      <li>Locking Files</li>
      <li>Reading from Files</li>
      <li>Handling File Uploads</li>
      <li>Navigating Directories</li>
      <li>Creating Directories</li>
      <li>Reading Files Incrementally</li>
      </ul>
      <h4>Chapter 12: Intro to Databases</h4>
      <ul>
        <li>Introduction to SQL</li>
      <li>Connecting to MySQL</li>
      <li>MySQL Error Handling</li>
      <li>Creating and Selecting a Database</li>
      <li>Creating a Table</li>
      <li>Inserting Data into a Database</li>
      <li>Retrieving Data from a Database</li>
      <li>Deleting Data in a Database</li>
      <li>Updating Data in a Database</li>
      </ul>
      <h4>Chapter 13: Regular Expressions</h4>
      <ul>
        <li>What are Regular Expressions?</li>
      <li>Matching Patterns</li>
      <li>Using Literals</li>
      <li>Using Metacharacters</li>
      <li>Using Quantifiers</li>
      <li>Using Classes</li>
      <li>Matching and Replacing Patterns</li>
      </ul></div>
      
   
      <p>
        <!-- end #mainContent -->
      </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
  </div>
<!-- This clearing element should immediately follow the 
#mainContent div in order to force the #container div to 
contain all child floats --><br class="clearfloat" />
   <div id="footer">
    <p align="center">&copy;R. Joanne Johnson 2009 </p>
    <p align="center"><a href="http://validator.w3.org/check?uri=referer" target="_blank"><img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Transitional" width="88" height="31" border="0" /></a></p>
  <!-- end #footer --></div>
<!-- end #container --></div>

<div id="sourceDiv">
   <?php  
   
/* shows the source code of the page and navigation */
    
show_source(basename($_SERVER['PHP_SELF']));?>
     <?php  
   
/* shows source for nav bar include */
   
show_source("includes/nav.php");?>
</div></pre>
<script type="text/javascript">
<!--
var MenuBar1 = new 
Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
<ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="/ullmanBook/chapter1.php">Chapter 1</a></li>
      <li><a href="/ullmanBook/chapter2.php">Chapter 2</a></li>
  <li><a href="/ullmanBook/chapter3.php">Chapter 3</a> </li>
  <li><a href="/ullmanBook/chapter4.php">Chapter 4</a></li>
  <li><a href="/ullmanBook/chapter5.php">Chapter 5</a></li>
  <li><a href="/ullmanBook/chapter6.php">Chapter 6</a></li>
      <li><a href="/ullmanBook/chapter7.php">Chapter 7</a></li>
  <li><a href="#">Chapter 8</a></li>
      <li><a href="#">Chapter 9</a></li>
      <li><a href="#">Chapter 10</a></li>
      <li><a href="#">Chapter 11</a></li>
      <li><a href="#">Chapter 12</a></li>
      <li><a href="#">Chapter 13</a></li>
      <li><a href="/ullmanBook/index.php">Home</a></li>
       <li><a href="http://www.lzydaz.com/phpBB3/index.php" target="_blank">Hello World</a></li>
       <li><a href="http://www.lzydaz.com/studygroup/php/index.php" target="_blank">Bonnie</a></li>
       <li><a href="http://www.amaraland.com/studyGroup/index.php" target="_blank">Kc Ladybug</a></li>
       <li><a href="http://krisse.tuna.fi/phpwww/ch1.php" target="_blank">Krisse</a></li>
       
       
    </ul>