- ——Dynamic content.
- —Computational capability.
- —Database and file system access.
- —Network access (from the server only).
- —Built-in libraries and functions.
- —Known platform for execution (as opposed to client-side, where the platform is uncontrolled.)
- —Security improvements
It is a powerful server-side scripting language for creating dynamic and interactive websites.
It is an open source software, which is widely used and free to download and use (PHP is FREE to download from the official PHP resource: www.php.net).
It is an efficient alternative to competitors such as Microsoft’s ASP.
PHP is often used together with Apache (web server) on various operating systems. It also supports ISAPI and can be used with Microsoft’s IIS on Windows.
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
PHP files can contain text, HTML tags and scripts
PHP files are returned to the browser as plain HTML
1. Install Apache (or IIS) on your own server, install PHP, and MySQL OR
2. Install Wampserver2 (a bundle of PHP, Apache, and MySql server) on your own server/machine
echo “Hello Class of 2011. This is my first PHP Script”;
echo “<br />”;
print “<b><i>What have you learnt and how many friends have you made?</i></b>”;
echo “<br /><a href=’PHP I-BSIC.ppt’>PHP BASIC</a>”;