CS2623: Server-Side Programming
SSP02: Basics of PHP
Objective:
-
Create PHP Scripts
Create PHP code blocks
- Work with variables
- Use expressions and operators
- Use built-in functions
- Use good programming practices
Points
- Full Credit: 40 Points
- Late/Resubmit Credit: 36 Points
Situation
This assignment will be a diversion from the Zodiac site. It is intended to give you a chance to experience PHP code before actually beginning your project. The work from this week will be in a separate folder. This will not be part of your final zodiac website.
Need a Visual Reference?
View the following video on YouTube of past student sites. In most of the cases the entire web page is not included in the screen shot, just enough to let you see the functionality of each project assignment. These videos are in a restricted area and intended for use only by students in this class.
Disclaimer: If you see something that is contradictory to our class assignments, please ask. Do not assume that since it is on the video that it is 100% correct.
Specifications
- Create a new folder named projects. This folder will hold class assignments that are not part of the Zodiac web site.
- Create a new web page named index.htm.
- At minimum it must contain your name and a link to each of this week's four exercises preceded by a brief description of the exercise (no more than three sentences).
- Include CSS to make it look professional.
- Create a web page for each of the following exercises. In addition to the instructions in the text, they must have a link back to the calling page. Also be sure to give each page a descriptive file name.
- Reinforcement Exercises: Exercise 1-1 on pp. 68-69 (Note: Use print_r() as described on p. 39)
- Reinforcement Exercises: Exercise 1-3 on pp. 70-71
- Reinforcement Exercises: Exercise 1-5 on p. 71
- Reinforcement Exercises: Exercise 1-6 on p. 71 (Note: Conditional Operators are discussed on p. 52)
Recurring Specifications:
- The footer must which includes the following must be included on all pages: your name, date last revised, contact information (email.occc.edu email address is sufficient), and the following disclaimer.
Oklahoma City Community College does not necessarily endorse the content or respective links of this page.
- CSS must validate for CSS 3 or earlier standards
- Code must be easy to read and properly indented.
- Documentation must be appropriate and meaningful.
- Meta Tags including the following must be included on all pages. The content must be revised to information that is meaningful to that particular page.
<meta name="author"
content="Your Name" />
<meta name="revised" content="12/18/2015" />
<meta name="description" content="Description of web page" />
<meta name="keywords" content="Add appropriate key words" />
Assignment Submission
- Follow the Assignment Submission requirements outlined in http://apollo.occc.edu/chyde/CS2623/Handouts/CS2623_CodingStandards.htm.
- Upload the files/folder to your apollo1 account.
- View the web page/s in Firefox, Chrome, Safari, and Internet Explorer.
- Revalidate and double check to make sure all items are visible from all computers.
- Submit the URL of your web page in MoodleRooms. The URL will be http://apollo1.occc.edu/user#####/projects
- Submission links must open web page in a new window (not inside of MoodleRooms) and display the page (and not a directory)
- XHTML code must validate STRICT and CSS must also validate for CSS3 or earlier. The Web Developer Toolbar in Firefox will be used for grading.
- Assignments not meeting the previous requirements (opening in a new window and XHTML/CSS Validation) cannot be graded. If it is still within the late/resubmit period, they can be re-uploaded and resubmitted (10% penalty). If it is after the final deadline, the work can no longer be submitted.