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. The PHP Cookbook is a collection of problems, solutions, and practical examples for PHP programmers. The book contains a unique and extensive 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. But this book offers more than cut-and-paste code. You also get 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 PHP Cookbook range from simple tasks, such as sending a database 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
PEAR, the PHP Extension and Application Repository
This book contains an impressive collection of useful code for PHP programmers, from novices to advanced practitioners. Instead of poking around mailing lists, online documentation, and other sources, you can rely on the PHP Cookbook to provide quick solutions to common problems, so you can spend your time on those out-of-the-ordinary problems specific to your application.
Publisher:
O'Reilly Media, Inc.
Authors:
David Sklar, Adam Trachtenberg
Release Date: 2002-11-20
ISBN/EAN: 1565926811 / 9781565926813
New Price: $9.84 /
Used Price: $4.85 /
Collectible Price: n.a. Buy
it Now!
Average Rating: 4.5
Number of
Reviews: 37
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03
Useful recipes
Rating:
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.
Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.
If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Total Votes: 0, Helpful Votes: 0, Date: 2008-12-21
Terrific reference!
Rating:
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. I keep my copy at work, but plan on buying another copy to keep at home. I highly recommend this book.
Total Votes: 1, Helpful Votes: 1, Date: 2008-11-25
Great semi-advanced updated book.
Rating:
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Total Votes: 0, Helpful Votes: 0, Date: 2008-07-17
Good book for programmers
Rating:
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other languages out there. You should however have an idea of how a data driven website works.
Total Votes: 0, Helpful Votes: 0, Date: 2008-05-06
There's a reason its O'Rielly
Rating:
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.
I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.
I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.
If you are new to Object Oriented coding, check out Object-Oriented PHP: Concepts, Techniques, and Code
Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Total Votes: 2, Helpful Votes: 1, Date: 2008-05-03