- Paperback: 528 pages
- Publisher: Apress; 2nd ed. edition (November 24, 2010)
- Language: English
- ISBN-10: 9781430232490
- ISBN-13: 978-1430232490
- ASIN: 1430232498
- Product Dimensions: 7.5 x 1.2 x 9.2 inches
- Shipping Weight: 2.5 pounds (View shipping rates and policies)
- Average Customer Review: 55 customer reviews
- Amazon Best Sellers Rank: #1,211,328 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
PHP Solutions: Dynamic Web Design Made Easy 2nd ed. Edition
Use the Amazon App to scan ISBNs and compare prices.
There is a newer edition of this item:
Frequently bought together
Customers who viewed this item also viewed
From the Author
What made the first edition of "PHP Solutions" my most popular book was that I wrote it with PHP 5 in mind at a time when most websites were still hosted on PHP 4 servers. So, when friends of ED asked me to prepare a second edition, I thought it would be a simple task -- just remove the PHP 4 material, and add some new techniques. How wrong I was!
The decision to drop support for PHP 4 was liberating. I realized that some tasks, such as uploading files and creating thumbnails, could be much better handled by custom classes. I hadn't been able to do that in the first edition because classes in PHP 4 and PHP 5 are mutually incompatible. The classes break complex tasks into simple, easy-to-understand operations. Better still, all the code is project-neutral, so you can reuse the classes in other websites by writing no more than a dozen lines of code -- sometimes less.
Although the book retains the original structure of the first edition, all the code has been completely rewritten, making it cleaner and more efficient. Other new features include displaying the results of a news feed using SimpleXML and the Standard PHP Library (SPL). There's also detailed coverage of the date and time classes introduced in PHP 5.2 and 5.3. The chapter on working with multiple database tables has been expanded to explain how to implement foreign key constraints in InnoDB, the default storage engine in MySQL 5.5.
This new edition requires PHP 5.2 and MySQL 4.1 or later. The code won't work in earlier versions.
Please note that the example files for the book are now located on the main Apress website. The friends of ED address on page xvii is no longer valid.
From the Back Cover
What you'll learn
- Updates to the first edition with the latest PHP techniques for modern, dynamic web design
- Create dynamic websites with design and usability in mind, as well as functionality
- Understand how PHP scripts work, giving you confidence to adapt them to your own needs
- Bring online forms to life, check required fields, and ensure user input is safe to process
- Upload files and automatically create thumbnails from larger images
- Manage website content with a searchable database
This is a "must have" reference book for any Web developer using PHP scripting language. If you have read the first edition classic, then this update will bring you the latest PHP techniques and best practices. If you are new to dynamic web design with PHP, then David will introduce you to the core techniques and methods for dynamic PHP web sites, ready for the 21st century!
55 customer reviews
Review this product
Showing 1-4 of 55 reviews
There was a problem filtering reviews right now. Please try again later.
You don't have to buy anything from them (more expensive than Amazon) to download the source files. I found this a good read and informative. But I am an experience C++ programmer. I bought this book, specifically, so that I could use PHP programming language with Dreamweaver's Form options to collect data from my web page users. This book shows exactly how to do that. I also recommend Dreamweaver 8: The Missing Manual which, aside from some minor menu changes, is good with CS6.
WARNING: There are no '-' (hyphens) in the code written in this book. But if you have your type too big, or on a computer the page to narrow, Kindle will put hyphens in as page formatting. For example
my page 77 showed. echo $_SERVER['SCRIPT_FILE-NAME'];
with NAME']; on the next line. When I tried that it DID NOT WORK. When I reformatted the page it showed correctly as:
echo $_SERVER['SCRIPT_FILENAME']; which worked.
I do have a little background knowledge with PHP, but the other books I've read were so dry and things were taught at such random times, that I was getting really discouraged and fed up with trying to learn PHP. This book seriously changed my feelings and I actually looked forward to doing the tutorials.
If you're totally new to programming languages, this may take a little while for you to get the hang of, but the introductory chapter does a good job at explaining things such as functions and loops and I have no doubts that a beginner could learn from this book. Highly recommended!
I'm currently reading the Powers OOP PHP book. It's good but, because it doesn't have a consistent project, the learning is not as smooth.
The author is taking a "practical" approach to introducing the language. The good news is that his code is not all super-simplified examples, he shows some of the complexity of real world applications, and codes appropriate protections against malicious users and hackers. He basically develops a simple web site throughout the book, adding increasingly complex behaviors and features. This Sounds great in theory.
From a practical standpoint, it means that if you're trying to read the book rather than "coding along at home" the examples become impossibly large. Rather than using simple examples to illustrate things like database interaction or object-oriented features, the examples end up being a complex mish-mash of files discussed at various points in the book.
In the author's defense, if I had the time to work, slowly and methodically through each page, editing the sample code and seeing it in action, I would doubtless learn the essentials of the language. Sadly, like too many code monkeys, I'm under the gun and need to spin up on the details of the language quickly.
I was hoping for a book that would explain PHP, preferably in a semi-organized fashion. Where are the super-globals populated, and which ones can I rely on the server actually populating? What built-in functions are available? What are the most common errors and "gotchas" in PHP programming? Instead, I got a book that was somewhere between a PHP reference, a beginning programming tutorial, and an example of the sorts of real-world problems and security concerns that novice programers may not have previously considered.
It was well written, and I like the author's style. It's probably useful to introduce neophyte programmers to THINK about security and real-world complexity. It is, unfortunately, NOT a particularly well organized or effective introduction to PHP.