MCT436 - PHP Level I

Outline info
Last revision date 2018-09-24 01:03:30.255
Last review date 2018-11-07 14:39:12.523

Subject Title
PHP Level I

Subject Description
This course is designed to give students a solid understanding of the basics of PHP. Topics covered in this course will provide a solid foundation for web developers who wish to create database driven web sites using PHP and MYSQL. The content is delivered at a rapid pace that focuses on key concepts. Security concerns and best practices will be addressed throughout the entire course.

Credit Status
Participating students who attend at least 70% of scheduled classes receive a certificate of attendance.

Learning Outcomes
Upon successful completion of this subject the student will be able to:

1. Understand the basics of PHP.
2. Understand how to install and configure PHP.
3. Describe best practices and security issues.
4. Manipulate data submitted from HTML forms.
5. Debug code and understand error messages.
6. Use and create functions.
7. Create re-usable code for rapid development.
8. Create a Database driven web application.

Cheating and Plagiarism
Each student should be aware of the College's policy regarding Cheating and Plagiarism. Seneca's Academic Policy will be strictly enforced.

To support academic honesty at Seneca College, all work submitted by students may be reviewed for authenticity and originality, utilizing software tools and third party services. Please visit the Academic Honesty site on for further information regarding cheating and plagiarism policies and procedures.

All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at

Accommodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Disabilities Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

WDC100 or MCW817 or equivalent experience.

Topic Outline

Introduction to PHP

  • Background
    • What is PHP?
    • What is it used for?
    • Brief History
  • Installing PHP MYSQL and Apache using XAMPP on Windows
  • Using php.ini to configure PHP
    • Error Handling
  • Opening/Closing PHP tags

PHP Basics
  • Printing data on the screen
  • Best Practices (security)
    • Protecting against Cross-Site Scripting
  • Debugging
  • Comments
    • Single/multi-line comments
  • Variables
    • Types of variables (strings, integers, arrays, booleans, objects, resources)
    • Type juggling
  • Accessing GET/POST variables
  • Operators
  • Arrays
    • Numeric
    • Associative
  • Loops
    • For
    • While
    • For each
    • Break
  • Conditional Statements
    • If statements
    • Switch statements
  • Functions
    • Structure
    • Creating functions
    • Date, Email, Header functions
    • Common string functions
    • Referencing functions in the PHP manual
  • Including/Required Files
  • Sessions
  • Cookies

Using PHP with MYSQL
  • Creating databases with phpmyadmin
  • Protecting against SQL-Injection attacks
    • Connecting/querying the database with PHP
    • Selecting statements
    • Where/OR/AND/LIKE
    • Using PHP to embed data into html

Mode of Instruction
Classroom instruction and extensive hands-on experience will be provided with each participant having exclusive use of a computer.

Prescribed Texts
The following textbook will be provided:

PHP 6 And MySQL 5 For Dynamic Websites

Required Supplies
USB Flash Drive

Promotion Policy

Grading Policy
A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online ( or at Seneca's Registrar's Offices.

Modes of Evaluation
There is no formal testing or process to evaluate the students understanding. It is up to the student to evaluate his/her own progress. Students must attend 70% of classes to receive a certificate of attendance.

Approved by: Sharon Estok