PHP Hacks. Tips & Tools For Creating Dynamic Websites - Helion
ISBN: 978-05-965-5354-8
stron: 468, Format: ebook
Data wydania: 2005-12-12
Księgarnia: Helion
Cena książki: 84,92 zł (poprzednio: 98,74 zł)
Oszczędzasz: 14% (-13,82 zł)
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.
Osoby które kupowały "PHP Hacks. Tips & Tools For Creating Dynamic Websites", wybierały także:
- Tablice informatyczne. PHP7 19,67 zł, (5,90 zł -70%)
- PHP. Obiekty, wzorce, narzędzia. Wydanie V 115,81 zł, (35,90 zł -69%)
- PHP i jQuery. Techniki zaawansowane. Wydanie II 65,31 zł, (20,90 zł -68%)
- PHP i MySQL. Kurs video. Tw 148,98 zł, (59,59 zł -60%)
- Naucz si 129,00 zł, (51,60 zł -60%)
Spis treści
PHP Hacks. Tips & Tools For Creating Dynamic Websites eBook -- spis treści
- PHP Hacks
- SPECIAL OFFER: Upgrade this ebook with OReilly
- A Note Regarding Supplemental Files
- Credits
- About the Author
- Contributors
- Preface
- Why PHP Hacks?
- How to Use This Book
- How This Book Is Organized
- Common Problems
- Making a Cool Web Application
- Conventions Used in This Book
- Using Code Examples
- How to Contact Us
- Got a Hack?
- Safari Enabled
- 1. Installation and Basics
- 1.1. Hacks 12: Introduction
- Hack #1. Install PHP
- 1.2.1. Installing PHP on Windows
- 1.2.1.1. Installing PHP in Apache.
- 1.2.1.2. Installing PHP in IIS.
- 1.2.2. Installing PHP on Mac OS X
- 1.2.3. Installing PHP on Linux
- 1.2.4. Checking Your ISP Installation
- 1.2.5. Installing MySQL
- 1.2.6. Managing the Databases
- 1.2.7. See Also
- 1.2.1. Installing PHP on Windows
- Hack #2. Install PEAR Modules
- 1.3.1. Installing PEAR Modules on Your ISP
- 2. Web Design
- 2.1. Hacks 310: Introduction
- Hack #3. Create a Skinnable Interface
- 2.2.1. The Code
- 2.2.2. Running the Hack
- 2.2.3. See Also
- Hack #4. Build a Breadcrumb Trail
- 2.3.1. The Code
- 2.3.2. Running the Hack
- 2.3.3. Hacking the Hack
- 2.3.4. See Also
- Hack #5. Create HTML Boxes
- 2.4.1. The Code
- 2.4.2. Running the Hack
- 2.4.3. Hacking the Hack
- 2.4.4. See Also
- Hack #6. Add Tabs to Your Web Interface
- 2.5.1. The Code
- 2.5.2. Running the Hack
- 2.5.3. See Also
- Hack #7. Give Your Customers Formatting Control with XSL
- 2.6.1. The Code
- 2.6.2. Running the Hack
- 2.6.3. See Also
- Hack #8. Build Lightweight HTML Graphs
- 2.7.1. The Code
- 2.7.2. Running the Hack
- 2.7.3. Hacking the Hack
- 2.7.4. See Also
- Hack #9. Properly Size Image Tags
- 2.8.1. The Code
- 2.8.2. Running the Hack
- 2.8.3. Hacking the Hack
- 2.8.4. See Also
- Hack #10. Send HTML Email
- 2.9.1. The Code
- 2.9.2. Running the Hack
- 2.9.3. See Also
- 3. DHTML
- 3.1. Hacks 1126: Introduction
- Hack #11. Put an Interactive Spreadsheet on Your Page
- 3.2.1. The Code
- 3.2.2. Running the Hack
- 3.2.3. See Also
- Hack #12. Create Pop-Up Hints
- 3.3.1. The Code
- 3.3.2. Running the Hack
- 3.3.3. See Also
- Hack #13. Create Drag-and-Drop Lists
- 3.4.1. The Code
- 3.4.2. Running the Hack
- 3.4.3. See Also
- Hack #14. Build Dynamic HTML Graphs
- 3.5.1. The Code
- 3.5.2. Running the Hack
- 3.5.3. See Also
- Hack #15. Section Your Content with Spinners
- 3.6.1. The Code
- 3.6.2. Running the Hack
- 3.6.3. See Also
- Hack #16. Create Drop-Down Stickies
- 3.7.1. The Code
- 3.7.2. Running the Hack
- 3.7.3. See Also
- Hack #17. Create Dynamic Navigation Menus
- 3.8.1. The Code
- 3.8.2. Running the Hack
- 3.8.3. See Also
- Hack #18. Obscure JavaScript Dynamically
- 3.9.1. The Code
- 3.9.2. Running the Hack
- Hack #19. Build a DHTML Binary Clock
- 3.10.1. The Code
- 3.10.2. Running the Hack
- 3.10.3. See Also
- Hack #20. Tame Ajax with JSON
- 3.11.1. The Code
- 3.11.2. Running the Hack
- Hack #21. Make a DHTML Slideshow
- 3.12.1. The Code
- 3.12.2. Running the Hack
- 3.12.3. See Also
- Hack #22. Add Vector Graphics with PHP
- 3.13.1. The Code
- 3.13.2. Running the Hack
- 3.13.3. See Also
- Hack #23. Build a Color Selector
- 3.14.1. The Code
- 3.14.2. Running the Hack
- Hack #24. Create Link Graphs
- 3.15.1. The Code
- 3.15.2. Running the Hack
- 3.15.3. See Also
- Hack #25. Create an Interactive Calendar
- 3.16.1. The Code
- 3.16.2. Running the Hack
- 3.16.3. See Also
- Hack #26. Create the Google Maps Scrolling Effect
- 3.17.1. The Code
- 3.17.2. Running the Hack
- 3.17.3. See Also
- 4. Graphics
- 4.1. Hacks 2733: Introduction
- Hack #27. Create Thumbnail Images
- 4.2.1. The Code
- 4.2.2. Running the Hack
- 4.2.3. See Also
- Hack #28. Create Beautiful Graphics with SVG
- 4.3.1. The Code
- 4.3.2. Running the Hack
- 4.3.3. See Also
- Hack #29. Simplify Your Graphics with Objects
- 4.4.1. The Code
- 4.4.2. Running the Hack
- 4.4.3. See Also
- Hack #30. Split One Image into Multiple Images
- 4.5.1. The Code
- 4.5.2. Running the Hack
- 4.5.3. Hacking the Hack
- 4.5.4. See Also
- Hack #31. Create Graphs with PHP
- 4.6.1. The Code
- 4.6.2. Running the Hack
- 4.6.3. See Also
- Hack #32. Create Image Overlays
- 4.7.1. The Code
- 4.7.2. Running the Hack
- 4.7.3. Hacking the Hack
- 4.7.4. See Also
- Hack #33. Access Your iPhoto Pictures with PHP
- 4.8.1. A Look Behind the Scenes: iPhoto Data
- 4.8.2. The Code
- 4.8.3. Running the Hack
- 4.8.4. Hacking the Hack
- 4.8.5. See Also
- 5. Databases and XML
- 5.1. Hacks 3450: Introduction
- Hack #34. Design Better SQL Schemas
- 5.2.1. Bad Primary Keys
- 5.2.2. Misunderstanding Relational Databases
- 5.2.3. Use Not Null Fields
- 5.2.4. See Also
- Hack #35. Create Bulletproof Database Access
- 5.3.1. See Also
- Hack #36. Create Dynamic Database Access Objects
- 5.4.1. The Code
- 5.4.2. Running the Hack
- 5.4.3. Hacking the Hack
- 5.4.4. See Also
- Hack #37. Generate CRUD Database Code
- 5.5.1. The Code
- 5.5.2. Running the Hack
- 5.5.3. See Also
- Hack #38. Read XML on the Cheap with Regular Expressions
- 5.6.1. The Code
- 5.6.2. Running the Hack
- 5.6.3. Hacking the Hack
- 5.6.4. See Also
- Hack #39. Export Database Schema as XML
- 5.7.1. The Code
- 5.7.2. Running the Hack
- 5.7.3. See Also
- Hack #40. Create a Simple XML Query Handler for Database Access
- 5.8.1. The Code
- 5.8.2. Running the Hack
- 5.8.3. See Also
- Hack #41. Generate Database SQL
- 5.9.1. The Code
- 5.9.2. Running the Hack
- 5.9.3. See Also
- Hack #42. Generate Database Select Code
- 5.10.1. The Code
- 5.10.2. Running the Hack
- 5.10.3. See Also
- Hack #43. Convert CSV to PHP
- 5.11.1. The Code
- 5.11.2. Running the Hack
- Hack #44. Scrape Web Pages for Data
- 5.12.1. The Code
- 5.12.2. Running the Hack
- 5.12.3. Problems with Screen Scraping
- 5.12.4. See Also
- Hack #45. Suck Data from Excel Uploads
- 5.13.1. The Code
- 5.13.2. Running the Hack
- 5.13.3. See Also
- Hack #46. Load Your Database from Excel
- 5.14.1. The Code
- 5.14.2. Running the Hack
- 5.14.3. See Also
- Hack #47. Search Microsoft Word Documents
- 5.15.1. The Code
- 5.15.2. Running the Hack
- 5.15.3. See Also
- Hack #48. Create RTF Documents Dynamically
- 5.16.1. The Code
- 5.16.2. Running the Hack
- 5.16.3. See Also
- Hack #49. Create Excel Spreadsheets Dynamically
- 5.17.1. The Code
- 5.17.2. Running the Hack
- 5.17.3. See Also
- Hack #50. Create a Message Queue
- 5.18.1. The Code
- 5.18.2. Running the Hack
- 5.18.3. See Also
- 6. Application Design
- 6.1. Hacks 5166: Introduction
- Hack #51. Create Modular Interfaces
- 6.2.1. The Code
- 6.2.2. Running the Hack
- 6.2.3. See Also
- Hack #52. Support Wiki Text
- 6.3.1. The Code
- 6.3.2. Running the Hack
- 6.3.3. Hacking the Hack
- Hack #53. Turn Any Object into an Array
- 6.4.1. The Code
- 6.4.2. Running the Hack
- 6.4.3. See Also
- Hack #54. Create XML the Right Way
- 6.5.1. The Code
- 6.5.2. Running the Hack
- 6.5.3. See Also
- Hack #55. Fix the Double Submit Problem
- 6.6.1. The Code
- 6.6.2. Running the Hack
- Hack #56. Create User-Customizable Reports
- 6.7.1. The Code
- 6.7.2. Running the Hack
- 6.7.3. See Also
- Hack #57. Create a Login System
- 6.8.1. The Code
- 6.8.2. Running the Hack
- 6.8.3. See Also
- Hack #58. Apply Security by Role
- 6.9.1. The Code
- 6.9.2. Running the Hack
- 6.9.3. See Also
- Hack #59. Migrate to MD5 Passwords
- 6.10.1. The Code
- 6.10.2. Running the Hack
- 6.10.3. See Also
- Hack #60. Make Usable URLs with mod_rewrite
- 6.11.1. An Introduction to Rewriting
- 6.11.2. Basic Rewriting
- 6.11.2.1. Basic redirects.
- 6.11.2.2. Forcing new requests.
- 6.11.3. Using Regular Expressions
- 6.11.3.1. Adding trailing slashes.
- 6.11.3.2. Match modifiers.
- Hack #61. Build an Ad Redirector
- 6.12.1. The Code
- 6.12.2. Running the Hack
- Hack #62. Add a Buy Now Button
- 6.13.1. Creating a Buy Now Button
- 6.13.2. Tracking the Sale
- 6.13.3. Verifying the Sale
- 6.13.4. The Code
- 6.13.5. Running the Hack
- 6.13.6. Hacking the Hack
- 6.13.7. See Also
- Hack #63. Find Out Where Your Guests Are Coming From
- 6.14.1. The Code
- 6.14.2. Running the Hack
- 6.14.3. See Also
- Hack #64. Import Information from vCards
- 6.15.1. The Code
- 6.15.2. Running the Hack
- 6.15.3. See Also
- Hack #65. Create vCard Files from Your Applications Data
- 6.16.1. The Code
- 6.16.2. Running the Hack
- 6.16.3. See Also
- Hack #66. Create a Shopping Cart
- 6.17.1. The Code
- 6.17.2. Running the Hack
- 6.17.3. See Also
- 7. Patterns
- 7.1. Hacks 6778: Introduction
- Hack #67. Observe Your Objects
- 7.2.1. The Code
- 7.2.2. Running the Hack
- 7.2.3. See Also
- Hack #68. Create Objects with Abstract Factories
- 7.3.1. The Code
- 7.3.2. Running the Hack
- 7.3.3. See Also
- Hack #69. Flexible Object Creation with Factory Methods
- 7.4.1. The Code
- 7.4.2. Running the Hack
- 7.4.3. See Also
- Hack #70. Abstract Construction Code with a Builder
- 7.5.1. The Code
- 7.5.2. Running the Hack
- Hack #71. Separate What from How with Strategies
- 7.6.1. The Code
- 7.6.2. Running the Hack
- Hack #72. Link Up Two Modules with an Adapter
- 7.7.1. The Code
- 7.7.2. Running the Hack
- Hack #73. Write Portable Code with Bridges
- 7.8.1. The Code
- 7.8.2. Running the Hack
- Hack #74. Build Extensible Processing with Chains
- 7.9.1. The Code
- 7.9.2. Running the Hack
- Hack #75. Break Up Big Classes with Composites
- 7.10.1. The Code
- 7.10.2. Running the Hack
- Hack #76. Simplify APIs Using a Façade
- 7.11.1. The Code
- 7.11.2. Running the Hack
- Hack #77. Create Constant Objects with Singletons
- 7.12.1. The Code
- 7.12.2. Running the Hack
- 7.12.3. Hacking the Hack
- Hack #78. Ease Data Manipulation with Visitors
- 7.13.1. The Code
- 7.13.2. Running the Hack
- 7.13.3. Hacking the Hack
- 8. Testing
- 8.1. Hacks 7985: Introduction
- Hack #79. Test Your Code with Unit Tests
- 8.2.1. The Code
- 8.2.2. Running the Hack
- 8.2.3. See Also
- Hack #80. Generate Your Unit Tests
- 8.3.1. The Code
- 8.3.2. Running the Hack
- 8.3.3. See Also
- Hack #81. Check for Broken Links
- 8.4.1. The Code
- 8.4.2. Running the Hack
- 8.4.3. See Also
- Hack #82. Test Your Application with Simulated Users
- 8.5.1. The Code
- 8.5.2. Running the Hack
- 8.5.3. See Also
- Hack #83. Test Your Application with Robots
- 8.6.1. The Code
- 8.6.2. Running the Hack
- 8.6.3. Hacking the Hack
- 8.6.4. See Also
- Hack #84. Spider Your Site
- 8.7.1. The Code
- 8.7.2. Running the Hack
- 8.7.3. See Also
- Hack #85. Generate Documentation Automatically
- 8.8.1. The Code
- 8.8.2. Running the Hack
- 8.8.3. See Also
- 9. Alternative UIs
- 9.1. Hacks 8694: Introduction
- Hack #86. Create Custom Maps with MapServer
- 9.2.1. MapServer Concepts
- 9.2.2. Getting the PHP MapScript Extension
- 9.2.3. Hacking Maps with PHP
- 9.2.3.1. Step 1: Prepare data.
- 9.2.3.2. Step 2: Render a map.
- 9.2.3.3. Step 3: Modify the map.
- 9.2.3.4. Step 4: Mapping from scratch.
- 9.2.4. Learning More
- 9.2.5. See Also
- Hack #87. Build GUI Interfaces with GTk
- 9.3.1. The Code
- 9.3.2. Running the Hack
- 9.3.3. See Also
- Hack #88. Send RSS Feeds to Your IM Application Using Jabber
- 9.4.1. The Code
- 9.4.2. Running the Hack
- 9.4.3. Hacking the Hack
- 9.4.4. See Also
- Hack #89. IRC Your Web Application
- 9.5.1. The Code
- 9.5.2. Running the Hack
- 9.5.3. See Also
- Hack #90. Read RSS Feeds on Your PSP
- 9.6.1. The Code
- 9.6.2. Running the Hack
- 9.6.3. See Also
- Hack #91. Search Google by Link Graph
- 9.7.1. The Code
- 9.7.2. Running the Hack
- 9.7.3. See Also
- Hack #92. Create a New Interface for Amazon.com
- 9.8.1. The Code
- 9.8.2. Running the Hack
- 9.8.3. See Also
- Hack #93. Send SMS Messages from Your IM Client
- 9.9.1. The Code
- 9.9.2. Running the Hack
- 9.9.3. See Also
- Hack #94. Generate Flash Movies on the Fly
- 9.10.1. The Code
- 9.10.2. Running the Hack
- 9.10.3. Hacking the Hack
- 10. Fun Stuff
- 10.1. Hacks 95100: Introduction
- Hack #95. Create Custom Google Maps
- 10.2.1. The Code
- 10.2.2. Running the Hack
- 10.2.3. See Also
- Hack #96. Create Dynamic Playlists
- 10.3.1. The Code
- 10.3.2. Running the Hack
- 10.3.3. See Also
- Hack #97. Create a Media Upload/Download Center
- 10.4.1. The Code
- 10.4.2. Running the Hack
- 10.4.3. See Also
- Hack #98. Check Your Network Game with PHP
- 10.5.1. The Code
- 10.5.2. Running the Hack
- 10.5.3. See Also
- Hack #99. Put Wikipedia on Your PSP
- 10.6.1. The Code
- 10.6.2. Running the Hack
- 10.6.3. See Also
- Hack #100. Create a Weather Showdown
- 10.7.1. The Code
- 10.7.2. Running the Hack
- 10.7.3. See Also
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly