PHP is a server-side scripting language originally designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document, rather than calling an external file to process data. Ultimately, the code is interpreted by a Web server with a PHP processor module which generates the resulting Web page.
PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by The PHP Group and serves as the formal reference to the PHP language. PHP is free software released under the PHP License, which is incompatible with the GNU General Public License (GPL) due to restrictions on the usage of the term PHP.
While PHP originally stood for “Personal Home Page”, it is now said to stand for “PHP: Hypertext Preprocessor”, a recursive acronym.
Reference Source : Wikipedia, the free encyclopedia.
As this could be the only post about PHP on my site I am showing the code to connect to a MySql database from PHP:
1 2 3 4 5 6 |
<?php ini_set('display_errors', 0); // in case of errors do no display them in browser &db = mysql_connect('db_ip', 'db_user', 'db_password') or die(mysql_error()); mysql_select_db('db_name') or die('Unable to select the database'); ?> |