i
PHP Variables
PHP Data Types
PHP Echo & Print
PHP Strings
PHP Numbers
PHP Constants
PHP Operators
PHP if...else...elseif Statements
Switch Statement
PHP Loops
PHP Arrays
Superglobals
PHP Coding Standards
PHP Form Handling
PHP Form Validation
PHP URLs Validation
PHP Form Required Validation
Complete Form Example
PHP File Functions Open/Read
PHP File Create/Write
PHP File Upload
PHP Cookies Handling
PHP Session Handling
PHP filter_var() Function
PHP Validation Filters
PHP Sanitization Filters
Using Filters
Filters Advanced
JSON
PHP Date and Time
MySQL Database
MySQL Connect
MySQL Commands-Creating a Table
MySQL Commands-Inserting The data
MySQL Commands-Prepared Statement
MySQL Commands-Selecting The Data
MySQL Commands-Where and Order By
MySQL Commands-Deleting And Updating The Data
PHP-OOP Introduction
PHP-Classes/Objects
PHP-Constructor/Destructor
PHP-Access Modifiers
PHP-Inheritance
PHP-Inheritance and Protected Access Modifier
PHP-Overriding Inherited Methods
PHP-Final keyword
PHP-Abstract Classes
PHP-Constants
PHP-Traits
PHP-Static Methods and Properties
Introduction to Functions
Defining A function
Returning Values From A Function
Dynamic Function Calls
Variable Scope
Understanding Arguments Or Parameters
Testing For A Function Existence
Returning Multiple Values From A Function
Making practical Use By Building Code Libraries For Code Re-usability
Using Include() And Require()
You can run PHP on various platforms, e.g. Windows, Linux, Unix, Mac OS X etc. and is compatible with almost all servers like Apache, IIS etc. PHP 7 is much faster and stable than all previous versions. PHP is very easy to setup. You need to download some files and set up the system for the first use. You can either find a web host with PHP and MySQL support or install a web server on your PC and then install PHP and MySQL.
> Installing PHP
1. Go to the site www.php.net -> Downloads -> Windows downloads.
2. You get a lot of options and then select the file best suitable for your operating system. For e.g., if you have the 64-bit operating system, select the VC14 x64 and similarly for a 32-bit system. Choose a thread-safe version and click on Zip file option.
3. The zip file will be downloaded, which will have all the required files to start using PHP.
4. Extract all the files into some other folder.
>Configuring Window Path variable
Window path variable configuration is required to let the system know that PHP is under which folder. As you will use all the functionalities of PHP, you need to ensure Windows is aware of it.
1. Search the option 'Edit the system environmental variables' in the control panel.
2. Click on the advanced tab and then choose environmental variables.
3. Go to the variable ‘Path’ click -> edit -> new -> Add PHP path.
4. Click Ok.
To ensure the path is added, go to command prompt and type echo%PATH% and if shows the PHP path, we have successfully updated the path variable. Then type PHP -v, and it shows you the version of PHP you are using. To start the PHP server type command php -S localhost:4000 and the development server will start.
Don't miss out!