PHP Assignments:

 

Class will have about 7-15 end of chapter projects, labeled P1-P10.

Your assignments can be checked one of three ways:

  1. E-mail them to me but make sure your e-mail subject header has PHP P1..P10, where P1..P10 represents the assignment you are sending me.
  2. I will be in the lab on Monday 6-7:00PM, I can check assignment in lab.
  3. Bring copies to class, however the first two methods are preferred.
  4. We may implement black board digital drop boxes for handing in assignments.

End of Chapter Review Questions are Extra Credit

  Assignment
Due Date
0

Fill In Student Questionnaire and E-Mail

Note if you are taking 7A you need not fill out this questionnaire, but include on 7A questionnaire you scripting language experience.

Also log in to blackboard and set your e-mail address

8/31/05
P1

Install Apache and PHP on your home computer

Administration guide will be distributed and reviewed in class, this guide will provide instructions for installing and configuring the above three applications.

 

You may install the book's CD version of Apache and PHP


Or use these Links to install the most recent version

I was unable to get the book CD working right, Lab and my home computer has Apache 2.0.52 and PHP5.0.

Then test your Apache Installation http://localhost you should see
Note after installing Apache you may need to start up the arrow in the fast launch icons

After PHP5.0 is properly install you should see
If your home computer has a server name you can replace localhost with your computer name.
Apache root is at c:/program files/Apache Group/Apache2/htdocs

 

PS If you plan on using Saddleback computers, you don't need to install these applications on your home computer.

P2

Read up on PEAR, especially the Coding Standards

Write a PHP script. Which includes the scripts file name and PHP_VERSION. Note the scripts file name is just the file name of the PHP web page. In this example I output primes and the script file name. Look under magic constants for additional help.

10/1
Note P4 & P5 are Due First

 

Chapter 1 Chapter 2 Chapter 3

 

P3

 

Beginners: Write a PHP Script that counts from 1..10 using while, for, and do while loop. Your program should also kick out the square of each number. If you can put the numbers into an HTML table.

Programmers: Write a PHP Script that computes the factors of a number. Similar to example , if you can further modify this script so that only the prime factors are printed.

 

10/1

Chapter 4

EC1 LAMP is beginning to get very popular as a system of choice for developing Web super platforms. Notice that the european Linux Nodes lease sites supports SUSE-LAMP. Also MySQL has become a top ten wanted certificate, and linux has three certificates in the top ten. Can you find more information on the MySQL certificate, sample test books, etc.  
P4

Chapter 4 Activity 2 - this is just hello World

9/17

 

Chapter 6

 

P5 Write a single Web document with PHP scripts for solving quiz questions 1..4; Don't look at Answers; Page 131 Chapter 6
9/24

 

Chapter 7

 

P6

Create a Function for Activity on Page 151, You pass 4 string variable so to a function and it returns a string with each value enclosed in a table cell identifier

Using the function in Activity on Page 151, write a program
that creates a table with number, square root, square, & factorial

numbers should go from 1 .. 10;

 

10/8/05

 

Chapter 7

 

P7

Create an Array of all available PHP Functions; Output this Array to the screen. hint start searching at function_exists

 

Write print_h, similar to print_r but is even more human readable, associative arrays should have keys and values displayed as part of table with two columns,

Also make the function recursive so it can transverse an array value which is an array value.

 

10/30/05
P8

Activities 1 and 2

1 Create a mutlidimensional array of movies organized by genre. Don' t use just print_r to output the movies, but also write a function that prints "genre: movie1, move2, ..."

2. Inheritance example

11/10/05

 

Chapter 8 & Chapter 9

 

P9

Write a PHP script to address quiz questions 1..10, on page 198; for each question write an output statement that answers the questions. You may want to use print_r function.

or

Programmers activity 3 Page 180; Write a birthday countdown script. Use an HTML meta to refresh your page. For example....

< META HTTP-EQUIV="Refresh" CONTENT="2">

When place between your header tags, the above meta tag will update your Web page ever 2 seconds.

11/10/05
  Optional: Look at CNET on line tutorial on installing Linux; From my experience SuSE is the best, I can loan out SuSE CDs/DVDs.  
P10 Handout given in Lab (10/26/05); But if you missed lab here is a GIF copy of the handout. You will need to boot linux to do lab, live CDs are available during class, and on the Web.

11/10/05

 

P11 Handout #2 GIF Copy, http://linux is only accessible from within Saddleback
11/20/05
P12

Consider a Project In Place of Final - Will Pass around sign up list in class or E-mail me your tentative Title

Depending upon individual effort, project is worth 1-6 homework assignments.

12/14/05

Worth 1-6 Homework Assignments

 

Chapters 10-13

Finish Project Before Attempting any of the Last Assignments

 

P13

Activity at the bottom of Page 236

12/14/05
P14 Write a FileInfo.PHP similar, to the File Info program on http://linux but using only PHP Calls, (i.e., don't encapsulate a Bash shell script)
Optional
P15

Last Assignment - Pick just one depending upon your expertise:

Novice or Beginning MySQL Users

Intermediate or Advance MySQL Users

Novice users are given MySQL commands, and asked to tell me what they do; Experienced MySQL users must create the commands.

Some extra credit MySQL queries.

12/17/05
P15 is the last Assignment