Course Code : 20MCACC204
---- ### Unit-1 Installation and Basics of PHP ------ **▪ Installing and Setting up Environment:** what is Wamp, mamp, lamp, Installing Xampp on windows and Linux, Setting permissions on linux, Important configuration files.▪ Basics: HTTP & HTML, Request and Response procedure
▪ PHP Overview: The basics of PHP scripts, Beginning and Ending block of PHP, The echo statement and print (), Combining HTML and PHP, Comments in PHP
▪ Variables: Rules for defining variable in PHP, Super Global
▪ Data Types: Standard Data Types, Special Data Types, Data Type related Functions - gettype(), settype() Type casting
▪ Operators & Expressions, PHP Operators: Assignment, Arithmetic, Increment/Decrement, Comparison, logical, Ternary, string.
▪ Constants, variable variables, checking variable assignment, unset, predefined constants ▪ Switching flow: if, if…else, elseif, switch
▪ Loops: while, do-while, for, foreach, Break, continue
▪ Functions: intro, calling function, defining function, returning values from UDF, variable scope, global statement, static statement, formal and actual parameters, default value argument, passing reference, checking function existence before calling, variable function, variable length argument function.
▪ Arrays: creating array, types of array, array related functions.
▪ String: formatting strings, argument swapping, storing formatted string, string functions
▪ Date and Time functions
▪ JSON: encode – decode
▪ Object Oriented PHP: basics of oop, defining class, creating object instance, magic class methods – mutator, accessor, constructor, destructor, copying objects, displaying objects, extending classes
▪ JavaScript: a brief history, Advantages, comments, hiding javascript from older browsers, using js in different ways, datatypes, datatype conversion, dialog boxes
▪ Control structures & loops, user defined functions, basic javascript events – form events, mouse events, text events, keyboard events, text events
▪ Javascript functions: string, math, date & time, array functions.
▪ Validating form fields – login form validations, password matching, length validation, email field, date validation, (use of basic regular expressions).
▪ JSON: Overview, uses, syntax, datatypes
▪ Forms: creating form, accessing form input with user-defined array, combining html & php, hidden fields, redirecting user, Working with file uploads
▪ MySQL - mysql datatypes, interacting mysql: database, table creation, CRUD, Replace Join
▪ Functions: string, date & time, formatting date & time, date arithmetic, special date-time functions.
▪ PHP & MySQL Interaction: database support in php, using mysqli library, connecting database, closing connection, submitting queries, retrieving data, being prepared, checking for errors
▪ Cookies: Accessing cookie, setting cookie, deleting cookie Sessions:** Starting session, working with session, storing multiple values in session, destroying session.
▪ Files: including files, Include & require, file related functions, creating & deleting files, file opening modes, reading & writing / appending files
▪ Directories: create, remove, read, close