LAMP Assignments:
CIM205B has 11 assignments listed h0..h10;
| Assignment | Due Date |
|
| H0 | Fill In Student Questionnaire - it will be available starting the second Monday of classes. You will need to validate the questionnaire to get credit. Not sure when CIM will be operational. It is at Saddleback just waiting for ITC to give it a public IP address. Will be communicating using Saddleback e-mail, make sure you forward your Saddleback email to an account you check. Video on main index have information on getting starting and on Spring course offerings. |
Week 2 |
| H1 | Class Week 4 will be in a computer lab room. You need to download and copy this file to your home directory on CIM. Then unzip the tar ball into your public_html directory. Move indexCIM205B.html to index.html; verify your home page is working. If you are in more than one class you may want to form a single index file. A tar ball is a collection of files compresses and combined into one file. For Open Source SW it is common to use either tar.gz (tar and gunzip), tar.bz or zip. In each case they use a different tool for uncompressing and installing. If you have a GUI interface, then you just click the file name with konqueror and the application ark automatically kicks in. You may want to use a live CD connection to CIM to do this. Ubuntu is probably the best live CD. Also on windows winzip will uncompress and extract a tar ball; You could download a tar ball and then unzip it to a directory and then use FileZilla to copy it to your cim web directory public_html. A video on using FileZilla has been placed on blackboard |
Week 4 |
| H2 | A list of framework shell scripts will be distributed in class you are to type these scripts in and tell me what they do. You should probably download and install putty - use nano to type in the scripts |
Week 6 |
| H3 | You were given a handout this is a GIF copy, of a PHP Script and BaSh script combined, enter these scripts on you home page and make sure the are accessible from your index.html page. | Week 10
|
| H4 | You may considering using cim as a PHP/MySQL testing server and do all your work in Dreamweaver. In Dreamweaver you can use edit --> preferences menu to set an external editor. External editors to consider using are either devPHP, or PHPEclipse-Zend, you may also considering buying a PHP IDE. Blackboard has videos on getting starting using devPHP - download the full version 2.0.12 on the left margin. Will allocated some time in lab 2nd week after Spring break in using devPHP/Dreamweaver. Write a PHP script that allows the incoming user to select, a background color, foreground color and also a text field to input name. Once selected the program should reload and say Hello xxx, Welcome to my Great Site, where xxx is the name enter with the form data. This is a continuing assignment we will be modifying this program in assignments h5..h10. Come closer to deciding on a project title. |
Week 11 |
| H5 | On the second screen you program should print the server date and client date. It should also print the number of days to Easter, July 4th and Christmas. If a Holiday has passed then you need to print out its past Easter. You need to use the easter_date function in your program. You may for extra credit calculate the number of days to memorial day. Memory day is always the last Monday in May. Your program needs to work with any date. For this assignment I have loaded the pear/date package, if easter_date is not available in PHP system on cim. Check out the comment section. With PEAR from what I'm seeing, they don't have documentation. |
Week 12 |
| H6 | No class 4/16/2007, Complete the online mySQL assignment - Videos are on blackboard, you need to create the file tutorial.sql; You should first watch the intro videos and then complete te assignment - total of 4 videos. | |
| H7 | Will be discussing the fortune command in class, you are to interface the program developed in H4, to the script supplied in class, fortune prints out an adage. To interface the command just use the exec php function, when executing fortune take fortunes from startrek, linuxcookie, fortunes2; by using exec( 'fortune startrek', $output ) In addition, modify the program so the user can also select a font-family and font-size. Add a button at the bottom that allows the user to reenter the settings. |
|
| H8 |
Cookie Interface, Record the users settings into a cookie, the second time a user comes to the Web page, they don't have to enter data. The joke of the day will change but the settings: color, font, and user name will remain the same. |
|
| H10 | Write a Web Page counter (I will give you the SQL commands) |
|
| H11 | Write a mailto form the mails the cotents of form data to a user | |
| H9 | Write InventoryControl program that allows the user to reset or create your fruit database and also they can add contents to its inventory. You should let the user select a fruit name and then enter a quantity value, program should then issue a query ..... insert into inventory values( (select id from fruit where name=$name), $quantity ) You can use InventoryFruit5.php as a starting ground. You should use your own database but you may use the fruit database. Become familiar with PHPMyAdmin so that you can be sure your program is correctly operating. |
|
| Spring 2007 .... H9 is the last Assignment | ||
| H10 | Write a program which will print out the contents of the Database created in H8. | |
| EC | Need to configure a Linux command line mail client that sends out mail in MIME Content-Type:text/html; everything I'm sending out from the command line in linux is defaulting to text/plain. BSD/Linux mail command... mail -s "Subject" emailAddress < mailMessage.txt You can consider using other mail clients, Mutt is the most popular but I want the ones that SuSE includes, (not sure if Mutt is supported) |
|
| EC | Read up on PEAR, can you find a usefull class |
|