Jil MacMenamin-Ms. Mac-Elementary School Instructor Photo

Jil MacMenamin

http://JilMac.com -or- http://Mac-Rand.com
JilMac@Mac-Rand.com ............. AIM: JilMac MSIE

Original Stained Glass Design by JilMac

PHP Class Examples

Link to all the examples: that are in my Book-PHP_r3-EXP subdirectory

to see the examples from the second edition Book-PHP_r2-EXP subdirectory

Listed on this page I have chapters that I want to draw your attention to. Some like the Project and Chapter 1, I want you to understand what I am expecting from you.

The others - because there is a concept - beyond just coding. I want to look at things outside our text and outside our protected STWEB server.

PROJECT - 25 Points of my Final

Project Outline - (Due week 8) is actually a Living Outline - 250 words to earn 1 point in discussion, a link from your index.php file to the outline gives you another point. a link to the project site gives you a third poing. If you have fine tuned/kept the outline up to date with what you actually accomplished, what was droped and what was moved to phase II - you can earn the other two points. This makes the Project Outline worth 5 points toward your final grade.

All students midterm grades reflect the first three points of the Project Outline. It gives you something to focus on. A visualization of all you are focused on learning. It helps me understand each students focus for this class.

JilMac's PHP example pages for weekly Assignments, Discussions & Chats

Week 1----Let's get Set Up to Program!! ---------------------------------------

Discussion 1 - Introduce yourselves

Discussion 2 - Tell me about your system

Discussion 3 - Reading/Research/Attendance - Read Intro & Chap 1, download accompaning files

Discussion 4 - Set up your FTP (links are in the Discussion) and FTP an index.html or index.php file you your STudent WEB space on STWEB.

Discussion 5 - Content Collection & ePortfolio

Week 2 - Let's modify some Code! -------------------------------------------------------

Each week you will be asked to do 1 research question = 1 pt, 3 Before & After's worth 1 pt each, and Put your work on your STWEB space and back up your files in Content Collection for a point. That gives you 5 points each week. 5 X 14 = 70 points toward your final grade.

Read & Research - Read Chapter 2 - Find a PHP Tutorial that interests you - don't forget to check out http://YouTube.com. Post in Week 2 Discussion Board the link to the tutorial(s), and 200 words what you learned from it.

Before & After's I want you to run Chapter 1's phpinfo program from STWEB and then again on your shared Web Host if you have one, to compare them.

Create a .php file with phpinfo (use directions from page 14 in 3rd Edition, 11 in 2nd Edition)
PHPINFO from the CCV Server Put the link with comments on your index.htm page. Enter in the discussion what looked interesting and why.
PHPINFO from JilMac's GoDaddy Server - JilMac needs to add this.

PHPINFO from JilMac's CrystalTech Server Look at another site - if you have the ability. Check the site you currently use - does it have PHP?? Did you know??

and 2 examples from Chapter 2

Post & Backup Week 2's Work

Chat - we need to pick a day - that most people who are interested in attending a chat - can. Please give me to choices of Sun, Mon, Tues, Wed, Thurs from 8:30pm-9:30ish. Chats are Extra Credit and not required. However - they are good to review - because the information may not be quickly referenced elsewhere. If you comment on the Chat depending on the imput you can earn up to 1 point of Extra Credit.

Week 3-----Understanding what Programs we need and what Version they are--------

Assignment 1 - create a .php file with $GLOBALS (use directions from page 27)

$GLOBALS from the CCV Server Put the link with comments on your index.htm page. Enter in the discussion what looked interesting and why.

$GLOBALS from JilMac's CrystalTech Server Look at another site - if you have the ability. Check the site you currently use - does functions are allowed in PHP?? Did you know??

Week 4-------Forms - A DataBases Best Friend ----------------------------------------

Book-PHP_r3-EXP/04/04-named/

script_04_01.html
script_04_03.php
script_04_04.php
script_04_05.php
script_04_06.php

FIELD Pull Down example from Programming for the Internet (JavaScript) http://www.javascriptworld.com Select SCRIPTS from the Left-Nav, scroll down to Chapter 14, Adding Pull Down Menus http://www.javascriptworld.com/chapter14.html It's not the prettiest pull down -it just simply explains how it is done.

Simple Example of a pull-down field in a form: http://mac-rand.com/GardenClub/contact-us.html do a View, Source, copy.

Week 11 -----Files & Directories - Writing to Files & Permissions --------------------

Writing to a file in PHP http://stweb.ccv.edu/CIS-2430-VO01-V09SP/jam08260/run-PHP-write-to-file/JilMac-cgi-bin-add_quote.php note: VO01 may change each semester

Now look and see what is in the file: http://stweb.ccv.edu/CIS-2430-VO01/jam08260/run-PHP-write-to-file/JilMac-cgi-bin-PHP-quotes.txt

Writing to a file in Perl http://stweb.ccv.edu/scripts/JilMac-testform.htm Envokes an HTML form, runs a Perl job, that's supposed to update a file and sends the file to the Apache server who sends an e-mail to the correct e-mail address - so appache must receive the correct e-mail address - but does not update the .eml file.

Week 12 ----DataBases

Week 13 ----Web Hosting -------------------------------------------

Word Document outlining the steps to Set up your Web Host, Add a Database, Setup Tables & Fields, assign usernames and passwords. A Must Read! Setting up your DataBase_Web_Host.doc

NOTE: The files that read from a certain database usually always are ON or RUN FROM the server the Database is on - or that is linked to

Reading from a Database on Mac-Rand's CrystalTech's account Mac-Rand's Student DataBase Read Example

Reading from a Database on JilMac's Student CrystalTech's account http://63.134.220.55/DATABASE-Read+DisplayAllFieldsExample.php

Schema - contactdb on CrystalTech's student account generated using http://WebYog.com 's SQLyog.com community softare http://63.134.220.55/db_contacts_schema.htm

 

Learn more about places where JilMac teaches classes, workshops, tutors and consults:

| Home | Email JilMac | Site Credits | Email WebMaster |