Introduction to PHP Programming
Introduction to PHP Programming
Course Description:
Course Objectives:
Course Outline:
What is PHP?
o History and Features
o PHP in the Web Development Stack
Setting up the Development Environment:
o Installing XAMPP/WAMP/LAMP
o Running PHP scripts on a local server
Your First PHP Script:
o Embedding PHP in HTML
o PHP Tags: <?php ?>
Conditional Statements:
o if, else, elseif, switch
Loops:
o for, foreach, while, do-while
Break and Continue
Types of Arrays:
o Indexed, Associative, Multidimensional
Array Functions:
o count(), array_push(), array_pop(), array_merge(), array_slice()
Iterating Through Arrays with foreach
String Manipulation:
o strlen(), strpos(), str_replace(), substr()
Regular Expressions:
o preg_match(), preg_replace()
Introduction to MySQL
Connecting PHP to a Database:
o Using mysqli or PDO
Performing CRUD Operations:
o Create: INSERT INTO
o Read: SELECT
o Update: UPDATE
o Delete: DELETE
Error Handling in Database Operations
Assessment:
References:
1. PHP Manual
2. W3Schools PHP Tutorials
3. Recommended Textbook: PHP and MySQL Web Development by Luke Welling and
Laura Thomson
Schedule:
Duration: 12 Weeks
Weekly Sessions: 2 hours/session (Lecture + Hands-on Practice)
Final Project Presentation: Week 13
This syllabus provides a structured learning path for students to gain proficiency in PHP,
enabling them to build robust and dynamic server-side applications.