What is PHP?
PHP is a open source, interpreted and object-oriented scripting language i.e. executed at server side. It is used to develop web applications (an application i.e. executed at server side and generates dynamic page).
- PHP is a server side scripting language.
- PHP is an interpreted language, i.e. there is no need for compilation.
- PHP is an object-oriented language.
- PHP is an open-source scripting language.
- PHP is simple and easy to learn language.
There are given many features of PHP.
- Performance: Script written in PHP executes much faster then those scripts written in other languages such as JSP & ASP.
- Open Source Software: PHP source code is free available on the web, you can developed all the version of PHP according to your requirement without paying any cost.
- Platform Independent: PHP are available for WINDOWS, MAC, LINUX & UNIX operating system. A PHP application developed in one OS can be easily executed in other OS also.
- Compatibility: PHP is compatible with almost all local servers used today like Apache, IIS etc.
- Embedded: PHP code can be easily embedded within HTML tags and script.
Why Do we need PHP ?
There are many reasons to use PHP for server side programming, firstly it is a free language with no licensing fees so the cost of using it is minimal.
A good benefit of using PHP is that it can interact with many different database languages including MySQL. We work with MySQL at Bluelinemedia since this is also a free language so it makes sense to use PHP. Both PHP and MySQL are compatible with an Apache server which is also free to license. PHP can also run on Windows, Linux and Unix servers.
Due to all these languages being free it is cheap and easy to setup and create a website using PHP.
PHP also has very good online documentation with a good framework of functions in place. This makes the language relatively easy to learn and very well supported online.
There are countless forums and tutorials on various PHP methods and problems so it is usually very easy to find help if you need it.
Due to PHP being so accessible and cheap to setup there are a lot of people who know how to use the language which makes finding new employees proficient in this language less challenging.
PHP Training in Chennai
Its clearly shows what was the power of PHP. Our PHP Training in Chennai helps you to build any web application from base.
PHP & MySQL Course Syllabus
Introduction of Web & PHP
- What is PHP?
- The history of PHP
- Why choose PHP?
- Installation overview
- Embedding PHP code on a page
- Outputting dynamic text
- The operational trail
- Inserting code comments
Exploring Data Types
- String functions
- Numbers part one: Integers
- Numbers part two: Floating points
- Associative arrays
- Array functions
- NULL and empty
- Type juggling and casting
Control Structures: Logical Expressions
- If statements
- Else and elseif statements
- Logical operators
- Switch statements
Control Structures: Loops
- While loops
- For loops
- Foreach loops
- Understanding array pointers
- Defining functions
- Function arguments
- Returning values from a function
- Multiple return values
- Scope and global variables
- Setting default argument values
- Common problems
- Warnings and errors
- Debugging and troubleshooting
Building Web Pages with PHP
- Links and URLs
- Using GET values
- Encoding GET values
- Encoding for HTML
- Including and requiring files
- Modifying headers
- Page redirection
- Output buffering
Working with Forms and Form Data
- Building forms
- Detecting form submissions
- Single-page form processing
- Validating form values
- Problems with validation logic
- Displaying validation errors
- Custom validation functions
- Single-page form with validations
Working with Cookies and Sessions
- Working with cookies
- Setting cookie values
- Reading cookie values
- Unsetting cookie values
- Working with sessions
- MySQL introduction
- Creating a database
- Creating a database table
- CRUD in MySQL
- Populating a MySQL database
- Relational database tables
- Populating the relational table
Using PHP to Access MySQL
- Database APIs in PHP
- Connecting to MySQL with PHP
- Retrieving data from MySQL
- Working with retrieved data
- Creating records with PHP
- Updating and deleting records with PHP
- SQL injection
- Escaping strings for MySQL
- Introducing prepared statements
Building a Content Management System (CMS)
- Blueprinting the application
- Building the CMS database
- Establishing your work area
- Creating and styling the first page
- Making page assets reusable
- Connecting the application to the database
Using Site Navigation to Choose Content
- Adding pages to the navigation subjects
- Refactoring the navigation
- Selecting pages from the navigation
- Highlighting the current page
- Moving the navigation to a function
- Finding a subject in the database
- Refactoring the page selection
- Creating a new subject form
- Processing form values and adding subjects
- Passing data in the session
- Validating form values
- Creating an edit subject form
- Using single-page submission
- Deleting a subject
- Cleaning up
- Assignment: Pages CRUD
- Assignment results: Pages CRUD
Building the Public Area
- The public appearance
- Using a context for conditional code
- Adding a default subject behaviour
- The public content area
- Protecting page visibility
Regulating Page Access
- User authentication overview
- Admin CRUD
- Encrypting passwords
- Salting passwords
- Adding password encryption to CMS
- New PHP password functions
- Creating a login system
- Checking for authorization
- Creating a logout page
Advanced PHP Techniques
- Using variable variables
- Applying more array functions
- Building dates and times: Epoch/Unix
- Formatting dates and times: Strings and SQL
- Setting server and request variables
- Establishing global and static variable scope
- Making a reference assignment
- Using references as function arguments
- Using references as function return values
Introduction to Object-Oriented Programming (OOP)
- Introducing the concept and basics of OOP
- Defining classes
- Defining class methods
- Instantiating a class
- Referencing an instance
- Defining class properties
OOP in Practice
- Understanding class inheritance
- Setting access modifiers
- Using setters and getters
- Working with the static modifier
- Reviewing the scope resolution operator
- Referencing the Parent class
- Using constructors and destructors
- Cloning objects
- Comparing objects
Working with Files and Directories
- File system basics
- Understanding file permissions
- Setting file permissions
- PHP permissions
- Accessing files
- Writing to files
- Deleting files
- Moving the file pointer
- Reading files
- Examining file details
- Working with directories
- Viewing directory content
- Configuring PHP for email
- Sending email with mail()
- Using headers
- Reviewing SMTP
- Using PHP Mailer