What is PHP ?


P.H.P is a general purpose scripting language.PHP is one of the most widely used server side scripting language for web development.
PHP stands for Hypertext Pre-processor. It is a powerful tool for making dynamic and interactive web pages.
PHP scripts are executed on the server. It supports many databases Like:- (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
PHP is an open source software. It is free to download and use.It is an interpreted language, hence it doesn't need a compiler.
PHP is fast as compared to other scripting language like JSP and ASP.
PHP is cross platform, hence you can easily develop and move/deploy your PHP code/project to almost all the major operating systems like Windows, Linux, Mac OSX etc.

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"


How to write PHP Code ?

A PHP scripting block always starts with <?php and ends with ?>.
A PHP scripting block can be placed anywhere in the document.
On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.
<?php PHP Code ?>