Synopses & Reviews
Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4 and 5.5, this third edition provides updated solutions for generating dynamic web content—everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether youre an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.
Youll find recipes to help you with:
- Basic data types: strings, numbers, arrays, and dates and times
- Program building blocks: variables, functions, classes, and objects
- Web programming: cookies, forms, sessions, and authentication
- Database access using PDO, SQLite, and other extensions
- RESTful API clients and servers, including HTTP, XML, and OAuth
- Key concepts: email, regular expressions, and graphics creation
- Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning
- Files, directories, and PHPs Command Line Interface
- Libraries and package managers such as Composer and PECL
Synopsis
This cookbook has a wealth of solutions for problems that PHP programmers face regularly. With topics that range from beginner questions to advanced web programming techniques, PHP Cookbook, 3rd Edition contains practical code recipes for anyone who uses this scripting language to generate dynamic web content. Revised for PHP 5.4, this edition includes new sections on updated web services, data formats, and 3rd party APIs, as well as revisions to PEAR library use.
About the Author
Adam Trachtenberg has an MBA from Columbia Business School. At business school, he focused on general management and operations, with an emphasis on the field of technology. Adam also has a BA from Columbia University. As an undergraduate, he majored in mathematics and his other studies included computer science and Chinese. Before returning to school, he co-founded and served as Vice President for Development at two companies, Student.Com and TVGrid.Com. At both firms, he led the front- and middle-end web site design and development, worked on corporate planning and strategy, and served as liaison between the product and marketing teams. During study breaks, Adam enjoys playing squash, reading fiction, and eating in New York City's many wonderful restaurants. He wishes he was a better at playing pool, knew the constellations, and was handy around the house.