www.opensourcewebbook.com
 
     
  Page Path - Contents - PHP Post 4.1.0  
     
 
Home
About
Foreword
Reviews
Authors
Purchase
Errata
Sourcecode
Resources
Tools
Contents
Linux
Apache
Perl
MySQL
WML
CGI
mod_perl
SSI
Embperl
Mason
PHP
     

PHP

This is the same content as the pre php version 4.1.0 page except these examples use code that would be used in versions post 4.1.0.

PHP is one of the Ps in LAMP (Perl and PHP). Its function is similar to that of HTML::Embperl and HTML::Mason - it uses executable code embedded in HTML to create dynamic web pages. In the last chapter, we compared Embperl and Mason, and we saw that they are similar in purpose. Both can handle most any situation one would come across when developing a web site. Whether one chooses PHP over Embperl or Mason is a matter of personal preference. There are differences, and we try to point them out. The choice is yours. TMTOWTDI (not just with Perl, but with LAMP and Open Source in general). Choice is good!

PHP is another of those recursive initialisms beloved of a certain portion of the hacker community; it's short for PHP: Hypertext Preprocessor. It was developed by Rasmus Lerdorf, Zeev Suraski, Andi Gutmans, and others. The first version was released in 1994; PHP is currently up to version 4.1.1 (as of this writing), while the version released with Red Hat 7 is 4.0.4.

PHP has many built-in functions that perform important and common requests: It can connect to databases (many types, including MySQL, which we cover here), send e-mail, create PDFs, and more. PHP is widely used, and there are plenty of tutorials, examples, and help available on the Web.

PHP Links

PHP home page
PHP Builder
PHP Wizard
online PHP manual

 

     

EXAMPLES:

hello.php:
hello.php
hello.php contents

phpinfo.php:
phpinfo.php
phpinfo.php contents

variables.php:
variables.php
variables.php contents

form data:
form1.html
form1.php contents

if.php:
if.php
if.php contents

loops.php:
loops.php
loops.php contents

function1.php:
function1.php
function1.php contents

function2.php:
function2.php
function2.php contents

function3.php:
function3.php
function3.php contents

mysql1.php:
mysql1.php
mysql1.php contents

mysql2.php:
mysql2.php
mysql2.php contents

mysql3.php:
mysql3.php
mysql3.php contents

Project:
journal.sql
launch page
add page
add page contents
view page
view page contents
view details page
view details page contents