php_2 - 1 PHP, Databases, and Cookies Dave Pease IDS496...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 PHP, Databases, and Cookies Dave Pease IDS496 12/2/2003 www.dpease.com/php PHP Basics ¡ Scripting language ¢ Non-compiled ¢ Similar in operation to Perl ¢ Similar in syntax to C ¢ Designed for the Web ¢ Releases exist for all major operating systems and HTTP servers ¡ MS Windows/MS IIS, Linux/Apache, etc. 2 PHP Syntax ¡ Server executes anything between <?php ?> as PHP code ¡ # or // for comments ¡ Lines end in semi-colons; ¡ Generally all files with .php extensions are executed ¢ Can be changed in HTTP server configurations PHP and HTML ¡ PHP can be embedded in HTML ¢ Anything outside <?php ?> is ignored by PHP but rendered by HTTP server as normal 3 Passing Arguments to PHP ¡ PHP can read command line arguments No argument arg=foo PHP and Forms ¡ PHP can read data from HTML forms •Check functions can be easily implemented •Select boxes in forms can be populated in loops in PHP •HTML page content always displays •Utilize PHP’s helpful environmental variables 4...
View Full Document

Page1 / 6

php_2 - 1 PHP, Databases, and Cookies Dave Pease IDS496...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online