Elgin Community College

CIS 105, Introduction to Programming: PHP
Instructor: Mark Pelczarski
Course Information
Syllabus
About your websites
Student E-mail Accounts
1. Getting Started: PHP, HTML, FTP, Apache, and how it all works

Reading:PHP in 24 Hours, Chapter 1 (PHP)

Links:

PHP.net PHP website and documentation
Notepad++ Good programmer's text editor
Filezilla FTP client software
Firefox web browser
HTML Tutorial
Using Filezilla for FTP

Assignment 1

1) Read the first two sections of the HTML Tutorial.
2) Create an HTML page called "index.htm". This will be your home page. You'll add links for each new assignment to this page through the rest of the semester.
3) Test your page by opening it in a web browser from your computer.
4) Use Filezilla to transfer your page and images to the class web server. Test it and make sure that the pages loads and displays correctly from the server using:

http://cis2.elgin.edu/loginname

where "loginname" is your login name for the FTP/web server.

2. HTML images and links, your first PHP script

Reading:PHP in 24 Hours, Chapter 3 (A First Script)

Photofiltre image editor
Paint.NET image editor

Apache Mobile web server

3. Variables, Data types, Arithmetic operators

Reading:PHP in 24 Hours, Chapter 4: The Building Blocks
Topics: variables, data types, arithmetic operators, order of operations
Using the querystring with $_GET.

4. Using HTML forms for input

Reading:PHP in 24 Hours, first part of Chapter 10: working with HTML forms.

5. if statements and getdate()

Reading: PHP in 24 Hours, first part of Chapter 5: if statements,
Chapter 16: getdate(), mktime()
Topics: using conditional statements, if-elseif-else, getdate

6. Compound conditions

Reading: PHP in 24 Hours, Chapter 4: Comparison Operators and Logical Operators
Topics: using compound conditions, more use of getdate, mktime

7. while loops and tables

Reading: PHP in 24 Hours, Chapter 5: while loops
Topics: Writing programs with loops. Tables in HTML. Other ways to print.

8. do-while loops, for loops, and rand

Reading: PHP in 24 Hours, Chapter 5: do-while loops and for loops.
Topics: More practice with loops. The rand function.

9. Nested loops and tables

Reading: PHP in 24 Hours, Chapter 5.

10. Functions

Reading: PHP in 24 Hours, Chapter 6: functions
Topic: using functions to simplify your coding

11. Creating and editing images with PHP

Reading: PHP in 24 Hours, Chapter 15: graphics
Topic: using graphics functions to create images

12. Reading and finding things in data files

Reading: PHP in 24 Hours, Chapter 11: files

13. Writing text files

Reading: PHP in 24 Hours, Chapter 11: files, Chapter 10: forms

14. String functions

Reading: PHP in 24 Hours, Chapter 8: Strings
Topics: string functions, strlen, strpos, stripos, substr, explode;

15. Arrays

Reading: PHP in 24 Hours, Chapter 7: arrays