50 likes | 319 Views
PHP. Dr. Maury Eggen Fall 2008. Introduction. PHP is a powerful server-side scripting language for creating dynamic and interactive websites.
E N D
PHP Dr. Maury Eggen Fall 2008
Introduction • PHP is a powerful server-side scripting language for creating dynamic and interactive websites. • PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. PHP is perfectly suited for Web development and can be embedded directly into the HTML code. • The PHP syntax is very similar to Perl and C. PHP is often used together with Apache (web server) on various operating systems. • http://www.w3schools.com/PHP/DEfaULT.asP • http://www.tizag.com/phpT/phpfunctions.php
Introduction • PHP is dynamically typed like the other languages we have studied • The usual way to run a php program is via a web server. However, it may also be run from the command line via the command php –f filetobeexecuted.php
Introduction • PHP is generally considered a server-side scripting language, but can be used in a general purpose environment • PHP can be used in a command line environment as well • Widely used • Relatively new – dates from 1995 • Written in C • Open source
Introduction • php -v • php -h • php -i • php -a