Beginning PHP4 offers an almost ideal introductory tutorial to one of todays hotter scripting languages. This book really is everything that the novice needs to start building dynamic Web sites that are powered by PHP4, but old hands at programmingMoreBeginning PHP4 offers an almost ideal introductory tutorial to one of todays hotter scripting languages. This book really is everything that the novice needs to start building dynamic Web sites that are powered by PHP4, but old hands at programming also will find in it valuable information. PHP, of course, is introduced in the book, but theres also an approachable and effective introduction to programming in general.
The conscientious tutorial on basic concepts like variables, keywords, and flow control will give even beginners an understanding of the basics of writing programs. PHP, it turns out, is not only a great way to generate HTML dynamically, but a very marketable skill. Web fundamentals like HTTP, HTML form variables, and managing session information using no less than four different techniques are explained thoroughly and effectively. You also find out how to install PHP and other tools on your system, with the assistance of plenty of screen shots.Thats not to say that this book will cramp the style of more experienced developers.
Some chapters delve into such important and advanced topics as database programming (with MySQL) and PHPs support for XML. One standout section demystifies the new support for objects and classes in PHP4. Basic topics like managing files and directories on the server, plus graphics processing, are addressed, of course, and a nifty sample program shows you how to build a Web-based text editor. Except for the final case study--a URL directory manager (akin to Yahoo!) thats rather specialized--the examples are right on, and illustrate everyday programming tasks.
Youll learn also how to generate e-mail with PHP--certainly a valuable skill to have.The appendix lists several hundred PHP functions in over 50 pages--a handy and useful feature. In all, Beginning PHP4 provides a strong choice for learning about one of todays most powerful and easy-to-use scripting languages- its concise, fast moving, and thoroughly approachable.
--Richard DraganTopics covered:Introduction to PHP 4Downloading and installing PHPBasics of HTTP and Web pagesPHP as a scripting languagePHP data typesConstants and conversionsHTML primerForm variablesDecision making in PHPLoops and arraysPHP functionsError handling in PHPTips on writing more maintainable codeDebugging hintsPreserving state with hidden form variablesQuery strings Cookies and PHP4 native sessions Using PHP objects File and directory functions PHP database programming Installing and using MySQL Tutorial for SQL syntax Querying and updating records XML quickstart for PHP users Creating e-mail and electronic newsletters PHP graphics processing (including image maps) Case study for a URL directory manager ODBC tutorial PHP4 function reference