www.opensourcewebbook.com | ||
Page Path - Contents - PHP Post 4.1.0 | ||
|
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
|
EXAMPLES: hello.php: phpinfo.php: variables.php: form data: if.php: loops.php: function1.php: function2.php: function3.php: mysql1.php: mysql2.php: mysql3.php: Project: |