BBM Tutor
BBM Tutor

PHP Introduction

PHP is a server-side scripting language.

Hypertext Pre-processor (PHPs) is a server-side scripting language, and server-sidescripts are special commands you must place in Web pages. Those commands are processed before the pages are sent from your Server to the Web browser of your visitor. A typical PHP files will content commads to be executed in the server in addition to the usual mixture of text and HTML (Hypertext Markup Language) tags.

This tutorial helps beginners learn the essential building blocks of PHP.

What is PHP?

  • PHP stands for PHP: Hypertext Preprocessor
  • PHP is a server-side scripting language, like JSP, ASP.
  • PHP file contains a mixture of Keywords, text and HTML tags.
  • PHP scripts are always enclosed in between two PHP tags.
  • PHP scripts are executed on the server and returned the plain HTML to the client browser..
  • PHP supports many databases (MySQL, Oracle, Sybase, PostgreSQL, Generic ODBC, etc.)
  • PHP is an open source tool to develop a dynamic web application.
  • PHP is free to download and use (www.php.net is a popular resourse to download).

What is a PHP File?

  • PHP files can contain text, HTML tags and scripts
  • PHP files are returned to the browser as plain HTML 
  • PHP files have a file extension of ".php", ".php3", or ".phtml"
  • PHP file runs on different platforms (Windows, Linux, Unix, etc.)
  • PHP file is compatible with almost all servers used today (Apache, IIS, etc.)

Simple PHP Code

<?php
echo("My first php script!");
?>

PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

BBM Invoice

PHP and MySQL

  • PHP is a powerfull tool to interact with a MySQL database and to make a database-driven web site.
  • PHP combined with MySQL are cross-platform

PHP Does the following

  • PHP runs on different platforms (Windows, Linux, Unix, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP reduce the time to create large websites.
  • PHP create a customized user experience for visitors based on information that you have gathered from them.
  • PHP open up thousands of possibilities for online tools.
  • PHP allow creation of shopping carts for e-commerce websites.

Where to Start PHP?

  • Install Apache (or IIS) on your own server, install PHP, and MySQL
  • Apache is free to download and use (httpd.apache.org/download.cgi is an official website to download).
  • PHP is free to download and use (php.net/downloads.php is a popular resourse to download).
  • MySQL is free to download and use (mysql.com/downloads/ is a popular resourse to download).
 
Disclaimer: Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.