Programming in PHP
Subject Overview
Programming in PHP covers PHP fundamentals and control structures, functions/string manipulation/arrays, forms and file/database handling with MySQL, and cookies/sessions and advanced PHP techniques. A 5-credit core theory paper.
Unit-wise Syllabus
4 units — click WhatsApp below to get the full notes for each
Unit 1: PHP fundamentals
Evolution of PHP, PHP scripting basics, receiving user input, PHP data types, operators, variable manipulation and scope, control structures (if/elseif, switch, while, do-while, for loops, nesting)
Unit 2: Functions, strings and arrays
Function definition/creation/return values, user-defined and dynamic functions, default arguments, string formatting/comparison/matching, index-based and associative arrays, array looping with each() and foreach()
Unit 3: Forms, files and database connectivity
Working with forms and superglobal variables, importing and accessing user input, opening/copying/renaming/deleting files, working with directories, generating images with PHP, MySQL database connectivity, DML operations (insert, delete, update, select), joins (cross, inner, outer, self)
Unit 4: Cookies, sessions and advanced techniques
Setting and deleting cookies, session creation and destruction, encoding/decoding session variables, FTP/SMTP server introduction, math functions, file upload/download, email with PHP, error tackling and debugging, PHP project requirements analysis
