03-05-2012, 04:24 PM
HYPERTEXT PREPROCESSOR(PHP)
cs2406-lm.doc (Size: 653 KB / Downloads: 243)
What is PHP
• PHP stands for PHP: Hypertext Preprocessor
• PHP is a powerfull tool for making dynamic and interactive web pages.
• PHP is the widely used, free, and efficient alternative to competitors such as Microsoft’s ASP.
• PHP is a server-side scripting language, like ASP
• PHP scripts are executed on the server
• PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
• PHP is an open source software
• PHP is free to download and use
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"
What is MySQL
• MySQL is a database server
• MySQL is ideal for both small and large applications
• MySQL supports standard SQL
• MySQL compiles on a number of platforms
• MySQL is free to download and use
PHP + MySQL
• PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)
Basic PHP Syntax
A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.