This updated edition teaches everything you need to know to create effective web applications with the latest features in PHP 5.x. You’ll start with the big picture and then dive into language syntax, programming techniques, and other details, using examples that illustrate both correct usage and common idioms. If you have a working knowledge of HTML, the authors’ many style tips and practical programming advice will help you become a top-notch PHP programmer. Get an overview of what’s possible with PHP programs Learn language fundamentals, including data types, variables, operators, and flow control statements Understand functions, strings, arrays, and objects Apply common web application techniques, such as form processing, data validation, session tracking, and cookies Interact with relational databases like MySQL or NoSQL databases such as MongoDB Generate dynamic images, create PDF files, and parse XML files Learn secure scripts, error handling, performance tuning, and other advanced topics Get a quick reference to PHP core functions and standard extensions
Explains how to use the open source scripting language to process and validate forms, track sessions, generate dynamic images, create PDF files, parse XML files, create secure scripts, and write C language extensions.
PHP is a simple yet powerful open source scripting language for creating dynamic web content. The millions of web sites powered by PHP are a testament to its popularity and ease of use. PHP is used by programmers, who appreciate its flexibility and speed, and web designers, who value its accessi bility and convenience.This book explains PHP language syntax and programming techniques in a clear and concise manner and includes examples that illustrate both correct usage and common idioms. It also includes style tips and practical programming advice that will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP, Second Edition, covers everything you need to know to create effective web applications with PHP.
Programmers love its flexibility and speed; designers love its accessibility and convenience. When it comes to creating web sites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million web sites, surpassing Microsoft's ASP .NET technology in popularity. Not surprisingly, this surge in usage has resulted in a number of PHP books hitting the market. Only one, though, takes the language beyond traditional Web programming and into mapping, graphing, multimedia, and beyond: PHP Hacks. In PHP Hacks, author Jack Herrington wrings out his 20 years of code generation experience to deliver hands-on tools ranging from basic PHP and PEAR installation and scripting to advanced multimedia and database optimizing tricks. On the practical side of things, PHP Hacks helps you develop more robust PHP applications by explaining how to improve your database design, automate application testing, and employ design patterns in your PHP scripts and classes. In the category of "cool," Herrington explains how to upgrade your Web interface through the creation of tabs, stickies, popups, and calendars. He even examines how to leverage maps and graphics in PHP. There's also a bounty of image and application hacks, including those that show you how to: Integrate web sites with Google maps and satellite imaging Dynamically display iPhoto libraries online Add IRC, SMS, and Instant Messaging capabilities to your Web applications Drop the latest Wikipedia dictionary onto your Sony PSP Render graphics and user interfaces with SVG, DHTML, and Ajax Whether you're a newcomer or an expert, you'll find great value in PHP Hacks, the only PHP guide that offers something useful and fun for everyone.