PHP

PHP

  • Mahalakshmi
    Teacher
    Mahalakshmi
  • Category
    Nellie Hodkiewicz
  • Review
    • (20 Reviws)
Courses
Course Summery

PHP

Requrements

PHP Lecture Started

Introduction of PHP:

              PHP Stands for Hypertext Pre-processor is a widely used open source server side scripting language.

            Originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994, PHP has since evolved into one of the most popular languages for web development.

           PHP is designed to be embedded in html and can be used to generate dynamic web pages, handle form data, manage sessions, and interact with databases. It can also be used to build web application, content management systems (cms), e-commerce platforms, and many other types of web-based software

            

                               LAMP Development Framework

 

Uses Of PHP:

  1. PHP is primarily used for server-side scripting in web development.
  2. enabling the creation of dynamic websites and applications that interact with databases.
  3. process forms, and perform various server-side tasks.
  4. It's also used for command-line scripting and integrates with other technologies to extend functionality.

 

 

 

Why we use PHP?

  1. Easy to learn and use.
  2. Great for server-side scripting, making dynamic websites.
  3. Supported by a large community with plenty of resources.
  4. Compatible across different platforms.
  5. Capable of integrating with various databases.
  6. Versatile, serving purposes beyond just web development.

 

Versions of PHP:

  1. PHP 1: It was Released in 1995. The initial version by Rasmus Lerdorf for managing website traffic.
  2. PHP 2: It was Released in 1997. Introduced support for accessing databases and cookies.
  3. PHP 3: It was Released in 1998. Added support for object-oriented programming and web protocols.
  4. PHP 4: It was Released in 2000. Added support for sessions, output buffering, and a number of new extensions.
  5. PHP 5: It was Released in 2004. Introduced significant improvements to OOP, XML support and error handling. It also added support for the MYSQLi extension for accessing MYSQL databases.
  6. PHP 6: This version is under development for many years but was eventually abandoned due to disagreements about the inclusion of Unicode support.
  7. PHP 7: It was Released in 2015. Focused on performance improvements, introduced scalar type declarations and other features.
  8. PHP 8: It was Released in 2020. Introduced JIT (Just-In-Time) compilation, union types, named arguments, and more.

PHP Installation:

            Installing PHP via XAMPP is a convenient option if you're setting up a local development environment on Windows, macOS, or Linux. XAMPP bundles Apache, MySQL, PHP, and Perl into an easy-to-install package. Here's how you can install PHP using XAMPP:

 

 

  1. Download XAMPP:

Go to the Apache Friends website (https://www.apachefriends.org/index.html) and download the appropriate XAMPP installer for your operating system.

 

 

Start XAMPP:

After installation, start the XAMPP control panel. On Windows, this is usually done by double-clicking the XAMPP desktop icon or launching it from the Start menu. On macOS and Linux, you can start XAMPP from the Terminal.

Start Apache and MySQL:

In the XAMPP control panel, start the Apache and MySQL services by clicking the "Start" buttons next to them. This will start the web server (Apache) and the database server (MySQL).