Rasmus Lerdorf unleashed the first version of PHP way back in 1994. It’s a server-side cross-platform scripting language that is embedded in HTML. PHP programming used to manage dynamic content, manage databases, session tracking, etc. We can’t view the PHP source code by selecting “View source” in the web browser. We will only see the output from the PHP file, which is plain HTML. Because the scripts are executed on the server before the result is sent back to the browser.
PHP integrated with bellow databases:
- Microsoft SQL Server.
Advantages of PHP
- Open Source
- Highly customization
- Constantly evolving
- Easy to use and designed for the Web
- WAMP Server
- Windows, Apache, MySQL, PHP
- LAMP Server
- Linux, Apache, MySQL, PHP
- XAMPP Server
- X(meaning cross-platform)
- Apache, MySQL, PHP, Perl
How to set environment for PHP programming?
Run PHP file you need three vital components in your computer. There are web-server, database, and PHP parser.
Web Server – PHP will work with virtually all Web Server software. Most users use the Apache server.
Database – PHP will work with databases and you can use Oracle, PostgreSQL, or PHP supported any databases. Most of the users use MySQL as a database.
PHP Parser – PHP script instructions a parser must be installed to generate HTML output that can be sent to the web browser.
Windows users can use WAMP server to manage offline servers. Download WAMP Server
Linux users can use LAMP server to manage as offline servers. Download LAMP Server
Basic PHP Syntax
A PHP scripting block always starts with <?php and ends with ?>
Each code line in PHP must end with a semicolon. There are two basic statements to output text with PHP: echo and print.
PHP echo Syntax:
<?php echo "Hello World!"; ?>
775 total views, 2 views today