PHP Cookbook (英語) ペーパーバック – 2003/12/30
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
PHP is a simple yet powerful open source scripting language that has become a big player in Web development. Over a million Web sites, from large corporate sites to small personal sites, are using PHP to serve dynamic Web content. PHP's broad feature set, approachable syntax, and support for different operating systems and Web servers make it an ideal language for rapid Web development. This is a collection of problems, solutions, and practical examples for PHP programmers. The book contains a collection of best practices for everyday PHP programming dilemmas. For every problem addressed in the book, there's a worked-out solution or "recipe" - short, focused pieces of code that you can insert directly into your applications. Also included are explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to similar situations. The recipes in the cookbook range from simple tasks, such as sending a data base query and fetching URLs, to entire programs that demonstrate complex tasks, such as printing HTML tables and generating bar charts. This book contains over 250 recipes on the following topics: working with basic data types, including strings, numbers, dates and times, and arrays; PHP building blocks, such as variables, functions, classes, and objects; Web programming, including forms, database access, and XML; useful features like regular expressions, encryption and security, graphics, internationalization and localization, and Internet services; working with files and directories; command-line PHP and PHP-GTK; and PEAR, the PHP Extension and Application Repository.
"This book is absolutely packed with quick solutions to common obstacles or ideas in PHP. The chapters on security are worth their weight in gold, as you'll learn how to properly protect your site against unauthorised use." .NET, February 2004商品の説明をすべて表示する
Amazon.com で最も参考になったカスタマーレビュー (beta)
Both the books were informative in their own right
o The ORA book had small snippets of code based solutions (very similar to the PHP Developers cookbook from Sterling and Andrei) that are very useful for programmers who are confounded with small to medium coding problems. However, there was nothing enterprising about the coverage, that one could not achieve from using a combination of the online docs + mailing lists. Another downside was that i could not find full solutions that i could re-use in my projects.
On the Other hand, i found
o The WROX book offered complete solutions to real world problems - a Simple/advanced CMS (the core of which you can plug into your site), a simple search engine, a classified ads board, and lots of cool creative case study solutions that i could extend to use in my hobby sites. The content was very enterprising and all of the solutions presented are the most popular one's amongst web developers these days. More interesting is that these solutions can be completely re-used and extended into your projects. However, the downside of this book is that you would need to have prior PHP knowledge either picked up from WROX' Professional PHP 4 (as is mentioned as a pre-requisite in the book) or from the Programming PHP ORA, or any another competent professional PHP programming books in the market.
So the bottomline is:
oCare for an appetiser - Pick up the ORA book.
oCare for a full meal - Pick up the Wrox book.
I am posting this same review for both the books (so customers can benefit from it). However, i have ranked the Wrox book, a notch above this one, simply because i wanted a burp:-)
I have read some other reviews for this book here that recommend the Wrox book, stating this one is too simple. I don't agree with this. The Wrox book appears to me to be another "... let's show you a bunch of full blown application examples ..." book to me, similar to the classic Welling and Thomson SAMS published text. The "cookbook" will not teach you the language, nor is that its intent; it assumes you know what you are doing.
This book is exactly what it says it is, a cookbook. If you need a quick solution to specific coding problems, at a fairly advanced level, it is a really good reference.
If you are looking for complete programming solutions, do so as well!
However, if you have some basic experience with PHP and MySQL this book is just great.
This book deserves the word "cookbook" as it contains over 600 pages of receipts (do not expect big explanations, but just snippets of code), which will help you to solve many problems. And the best of this book - in my personal opinion - is, that by reading it, you will find a lot of problems/solutions/ideas you have not thought about before.
Be warned: This book is not a real "help" for anybody who looks for the easy solution, but it will definitely help YOU to develop your site and develop yourself.
Just buy it - it's well worth the money and if this book won't pay out, none will!
I have dabbled in PHP for a few months now, but am developing a php/mysql app for the first time. I refer to this book every single day. It's my favorite Oracle. I ask, it answers:
"How do I $MyDailyQuestion?"
"See page $MyDailyAnswer."
Sure puts a smile on my face!
This book does not make me read through pages and pages of code and explanation. Just enough code snippets and the most insightful reminders to help me solve my daily how-do-I's. It also tells you where to look up further info for each function/feature on-line.
I think you would love this book as much as I do if:
- you are somewhere between PHP super-newbie and super-master
- you have a pretty solid background in some other language
- you are using PHP now and have problems to solve everyday
- you learn well from small examples
- your vision starts to blur when presented with long chapters
My thanks to authors Sklar and Trachtenberg! Happy hunting.