Programming in PHP

 Course Code: UGCA1929

Course Name: Programming in PHP

Unit-I

Introduction to PHP: Evolution of PHP & its comparison Interfaces to External systems, Hardware and Software requirements, PHP Scripting. Basic PHP Development, Working of PHP scripts, Basic PHP syntax, PHP data types.

Displaying type information: Testing for a specific data type, Changing type with Set type, Operators, Variable manipulation, Dynamic variables and Variable scope


Unit-II

Control Statements: if() and elseif() condition Statement, The switch statement, Using the? : Operator, Using the while() Loop, The do while statement, Using the for() Loop.

Functions: Function definition, Creation, Returning values, Library Functions, User-defined functions, Dynamic function, default arguments, Passing arguments to a function by value.

String Manipulation: Formatting String for Presentation, Formatting String for Storage, Joining and Splitting String, Comparing String.

Array: Anatomy of an Array, Creating index based and Associative array, Looping array using each() and foreach() loop.


Unit-III

Forms: Working with Forms Super global variables, Super global array, Importing user input, Accessing user input, Combine HTML and PHP code, Using hidden fields, Redirecting the user.

Working with File and Directories: Understanding file & directory, Opening and closing a file, Coping, renaming and deleting a file, Working with directories, File Uploading & Downloading.

Generating Images with PHP: Basics computer Graphics, Creating Image.


Unit-IV

Database Connectivity with MySql: Introduction to RDBMS, Connection with MySql Database, Performing basic database operation (DML) (Insert, Delete, Update, Select).

Comments