PHP DEVELOPERS TRAINING COURSE MATERIAL
1) HTML / CSS
• Introduction to HTML5
History of the World Wide Web
Mechanism of the Internet
Fundamentals of HTML5
Structure of an HTML5 Document
HTML5 Formatting Tags
Concept & Applications of Hyperlinks
DOCTYPE Declaration
Creating HTML5 Tables
Creating HTML5 Forms
Commonly used Image Formats on the Web
• Cascading Style Sheets 3 (CSS3)
History and Basic Features of CSS3
Cascading Rules
CSS3 and Maintainability
Frequently-used CSS3 Properties
Advanced Selectors
Creating a Box Layout Structure with CSS3
CSS3 Layout Properties
Recent CSS3 Trends & Techniques
Developer Tools to Counter Bugs
TASK : 1 or 2 PSD to HTML5 Conversion (responsive)
2) Web Server Basics
Web Server – Client Server communication, components
Structure of a URL, Internet Protocols (HTTP, FTP, TCP/IP)
Lamp installation
Apache configuration files, error/access logs, document root, server root,
htaccess
Phpinfo and php configurations
TASK :
1) Install LAMP at home and discuss installation steps with the Trainer.
2) Random questions on how to find the configurations mentioned above
3) Open Source Technologies and PHP Basics
• Open Source Technology, Frameworks, Content Management Systems
• Introduction to PHP
• Basic Operations on Numbers and Text
• Coding Standards
• Embedding PHP with HTML
• Strings, Operators in PHP
• Conditional Operators and Loops
• Arrays and other PHP functions
• GET, POST
• Session and Cookie
• Time and Date Handling
• File Handling, processing, importing and exporting
• Generation and Parsing of XML / Json
• Web Forms
TASK :
1) Given $string = "PHP is the King of the web."
a) Get the length of the string.
b) Print the 8th character of the string without using any function.
c) Execute the above code from command line.
d) Get the position of the word "King" in $string.
e) Replace "King" with "Emperor".
f) Insert the string "new” before the word "King".
g) Get the words in $string as an array.
h) Extract and print the words "is the King" from $string.
i) Get the count of occurrences of the strings "the" and "of" in $string.
j) pad $string with "*" and set the total length of the string as 30.displayed
at right side.
4) Generate an array of first 20 prime numbers and find the sum of all the
elements in that array.
5) Create IP number from a given IP address. (IP number is using the equations
IP_number = a*(256)^3 + b*(256)^2 + c*(256)^1 + d*(256)^0 where the IP
address is a.b.c.d and 0<a,b,c,d<256 )
6) Given an array
$nums = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
Sort the array so that all the odd numbers are listed first.
7) Create a function that generates a random password of length $length.
4) JavaScript, Jquery and other libraries
JavaScript Syntax
Methods
Properties
Variables and Arrays
Looping Constructs
Functions and Event Handlers
Accessing and traversing Document Object Model
Controlling Elements with JavaScript
Controlling Attributes with JavaScript
Controlling Nodes with JavaScript
Concept and Introduction to AJAX
Using the Google Map API (AJAX)
Introduction to jQuery
jQuery's uses and advantages.
JQuery selection, traversing, and manipulations.
jQuery Events.
Various practical examples with JS and jQuery code
General outline about Angular JS, NodeJS
5) RDBMS & MySQL
• MySQL
• MySQL introduction with PHP - PHPMYADMIN
• Connecting PHP with MySQL*
• Creating Database, Tables in MySQL
• Inserting and Fetching Data from MySQL
• Using of WHERE, ORDER BY and GROUP BY Clauses of MySQL
• Updating and Deleting a Row Set of MySQL with PHP
• Join Statements
TASK :
1) How to Create new DB and Tables in MySQL
2) How to Insert data into a Table
3) Fetching data from a Table using conditions (WHERE Clause)
4) How to Update/Delete a record in Table
5) Sort a set of data fetched from DB
6) Use Group By to group and segregate data based on columns and using
aggregate functions such as SUM.
7) Joining two tables and fetching all data using different Joins
6) CODEIGNITER
Session Title Details
Config Class, Database Config,
Session 1 Initial Setup and Configuration
Explanation of MVC Architecture
Loader Class, Libraries, Creating
Session 2 First CI Application Static Pages, Creating First
Controller, Model & View
Passing Parameters in URLs, URI
Session 3 CodeIgniter URLs, URI Routing
Class
Session 4 Reserved Names
Session 5 Auto Loading Functions
Input Class, Form Validation
Session 6 Form Handling Class, File Uploading Class,
Security Class, Page Redirection
Cookie Helper, Date Helper,
Session 7 Helper Functions
Download Helper, URL Helper
Database Configuration,
Connecting to a Database,
Session 8 Database Running Queries, Generating
Query Results, Query Helper
Functions, Field Data
Selecting Data, Inserting Data,
Session 9 Active Record Class Updating Data, Deleting Data,
Method Chaining
Session 10 Session handling Session Class
Sending Emails using CI, SMTP,
Session 11 Email Class
Google
Session 12 Image Manipulation Class Resize Image, Aspect Ratio
Session 13 Pagination Class Pagination of large data
Session 14 Caching
Session 15 Cart Class Simple shopping cart example
Session 16 Encryption Class
Identify user agent and display
Session 17 User Agent Class
browser specific view
Assignment 1
Create a web page that will allow the user to login/register to the site. If logged
in, the user should be able to see his profile and edit his profile.
Requirement:
Login page
Page should accept login name and password
A link to registration page
Registration page
The page should have the following fields. All the fields except Profile description
are mandatory
Fist name
Last name
Login name
password
Confirm password
Email
Date of birth
Occupation
Profile Description
After Login the user should be redirected to profile page. The page should have
the following.
Profile page should display profile details of the logged in user
Link to edit page
Edit page
The page should have all the fields except password and login name
The fields should be pre-populated.
Validation
All the fields should have necessary validation. (In js and in php if needed)
Should validate confirm password and email fields instantly
Listing Page:
All the registered users should be listed in the listing page. And the user name
should be a link, so that on clicking on it the particular user profile.
Database:
Create database in MySql.
Create tables based on requirement.
Assignment 2
User Registration Modification.
Add the file upload field on the registration page.
Store the date and time of registration in the database.
Create a login Page:
When user types his username and password, validate the input fields and
check with the database. If the credentials are true then take the user to
registered users listing page.
Validate The User Permission:
When the current user click on the username of other users on the listing
page then the corresponding user profile should be displayed only if he is
logged in , Else display an access denied message.
Setting a Cookie:
Keep a count on number of profile visited by the logged in user. And display
the count on the “Registered users listing page”. It should be displayed all the
time whenever the user login in.
User Profile Page:
In the User Profile page the following fields should be displayed.
Fist name.
Last name.
Date of birth.
Occupation.
Profile Description.
Profile Image.
Project
A real time assignment in Codeigniter.