judgefog
Мой дом здесь!
- Регистрация
- 12 Авг 2006
- Сообщения
- 486
- Реакции
- 340
- Автор темы
- #1
Для просмотра ссылки Войди или Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся, уже не все ссылки работают, но понятно будет каких авторов искать
Для просмотра ссылки Войдиили Зарегистрируйся
The PHP anthology - 101 essential tips, tricks & hacks
SitePoint
THE PHP ANTHOLOGY
101 ESSENTIAL TIPS, TRICKS & HACKS
2ND EDITION
2007
PDF, 2.84 mb
PDF, 14.8 mb
Для просмотра ссылки Войди
Для просмотра ссылки Войди
Для просмотра ссылки Войди
Для просмотра ссылки Войди
Для просмотра ссылки Войди
Для просмотра ссылки Войди
The PHP anthology - 101 essential tips, tricks & hacks
SitePoint
THE PHP ANTHOLOGY
101 ESSENTIAL TIPS, TRICKS & HACKS
2ND EDITION
2007
PDF, 2.84 mb
Chapter 1 Introduction
Where do I get help?
What is OOP?
How do I write portable PHP code?
Chapter 2 Using Databases with PDO
What is PDO?
How do I access a database?
How do I fetch data from a table?
How do I resolve errors in my SQL queries?
How do I add data to, or modify data in, my database?
How do I protect my web site from an SQL injection attack?
How do I create flexible SQL statements?
How do I find out how many rows I’ve touched?
How do I find out a new INSERT’s row number in an autoincrementing field?
How do I search my table?
How do I work with transactions?
How do I use stored procedures with PDO?
How do I back up my database?
Chapter 3 Strings
How do I output strings safely? .
How do I preserve formatting?
How do I strip HTML tags from text?
How do I force text to wrap after a certain number of characters?
How do I perform advanced search and replace operations?
How do I break up text into an array of lines?
How do I trim whitespace from text?
How do I output formatted text?
How do I validate submitted data?
Chapter 4 Dates and Times
How do I use Unix timestamps?
How do I obtain the current date?
How do I find a day of the week?
How do I find the number of days in a month?
How do I create a calendar?
How do I store dates in MySQL?
How do I format MySQL timestamps?
How do I perform date calculations using MySQL?
Chapter 5 Forms, Tables, and Pretty URLs
How do I build HTML forms with PHP?
How do I display data in a table?
How do I display data in a sortable table?
How do I create a customized data grid?
How do I make “pretty” URLs in PHP?
Chapter 6 Working with Files
How do I read a local file?
How do I use file handles?
How do I modify a local file?
How do I access information about a local file?
How do I examine directories with PHP?
How do I display PHP source code online?
How do I store configuration information in a file?
How do I access a file on a remote server?
How do I use FTP from PHP?
How do I manage file downloads with PHP?
How do I create compressed ZIP/TAR files with PHP?
How do I work with files using the Standard PHP Library in PHP
5?
Chapter 7 Email
How do I send a simple email?
How do I simplify the generation of complex emails?
How do I add attachments to messages?
How do I send HTML email?
How do I mail a message to a group of people?
How do I handle incoming mail with PHP?
How can I protect my site against email injection attacks?
Chapter 8 Images
How do I specify the correct image MIME type?
How do I create thumbnail images?
How do I resize images without stretching them?
How can I put together a simple thumbnail gallery?
How do I extract EXIF information from images?
How do I add a watermark to an image?
How do I display charts and graphs with PHP?
How do I prevent the hotlinking of images?
How do I create images that can be verified by humans only?
Chapter 9 Error Handling
What error levels does PHP report?
What built-in settings does PHP offer for error handling?
How can I trigger PHP errors?
How do I implement a custom error handler with PHP?
How do I log and report errors?
How can I use PHP exceptions for error handling?
How do I create a custom Exception class?
How do I implement a custom exception handler with PHP?
How can I handle PHP errors as if they were exceptions?
How do I display errors and exceptions gracefully?
How do I redirect users to another page following an error
condition?
Chapter 10 Access Control
How do I use HTTP authentication?
How do I use sessions?
How do I create a session class?
How do I create a class to control access to a section of the site?
How do I build a registration system?
How do I deal with members who forget their passwords?
How do I let users change their passwords?
How to do I build a permissions system?
How do I store sessions in a database?
Chapter 11 Caching
How do I prevent web browsers from caching a page?
How do I control client-side caching?
How do I examine HTTP headers in my browser?
How do I cache file downloads with Internet Explorer?
How do I use output buffering for server-side caching?
How do I cache just the parts of a page that change infrequently?
How do I use PEAR::Cache_Lite for server-side caching?
What configuration options does Cache_Lite support?
How do I purge the Cache_Lite cache?
How do I cache function calls?
Chapter 12 XML and Web Services
Which XML technologies are available in PHP 5?
Why should I use PHP’s XML extensions instead of PHP string functions?
How do I parse an RSS feed?
How do I generate an RSS feed?
How do I search for a node or content in XML?
How can I consume XML-RPC web services?
How do I serve my own XML-RPC web services?
How can I consume SOAP web services?
How do I serve SOAP web services?
How can I consume REST services?
How can I serve REST services?
Chapter 13 Best Practices
How can I document my code for later reference by myself or others?
How can I ensure future changes to my code won’t break current functionality?
I’ve reviewed some of my old code, and it’s horrible. How can I make it better?
How do I track revisions to my project’s code?
How can I maintain multiple versions of a single codebase?
How can I write distributable code?
How can I determine what remains to be tested?
How can I deploy code safely?[/SPOIL]
O'Reilly PHP hacks
CHM в архиве, 3.82 mb
[SPOIL] Chapter 1. Installation and Basics
Section 1.1. Hacks 12: Introduction
Hack 1. Install PHP
Hack 2. Install PEAR Modules
Chapter 2. Web Design
Section 2.1. Hacks 310: Introduction
Hack 3. Create a Skinnable Interface
Hack 4. Build a Breadcrumb Trail
Hack 5. Create HTML Boxes
Hack 6. Add Tabs to Your Web Interface
Hack 7. Give Your Customers Formatting Control with XSL
Hack 8. Build Lightweight HTML Graphs
Hack 9. Properly Size Image Tags
Hack 10. Send HTML Email
Chapter 3. DHTML
Section 3.1. Hacks 1126: Introduction
Hack 11. Put an Interactive Spreadsheet on Your Page
Hack 12. Create Pop-Up Hints
Hack 13. Create Drag-and-Drop Lists
Hack 14. Build Dynamic HTML Graphs
Hack 15. Section Your Content with Spinners
Hack 16. Create Drop-Down Stickies
Hack 17. Create Dynamic Navigation Menus
Hack 18. Obscure JavaScript Dynamically
Hack 19. Build a DHTML Binary Clock
Hack 20. Tame Ajax with JSON
Hack 21. Make a DHTML Slideshow
Hack 22. Add Vector Graphics with PHP
Hack 23. Build a Color Selector
Hack 24. Create Link Graphs
Hack 25. Create an Interactive Calendar
Hack 26. Create the Google Maps Scrolling Effect
Chapter 4. Graphics
Section 4.1. Hacks 2733: Introduction
Hack 27. Create Thumbnail Images
Hack 28. Create Beautiful Graphics with SVG
Hack 29. Simplify Your Graphics with Objects
Hack 30. Split One Image into Multiple Images
Hack 31. Create Graphs with PHP
Hack 32. Create Image Overlays
Hack 33. Access Your iPhoto Pictures with PHP
Chapter 5. Databases and XML
Section 5.1. Hacks 3450: Introduction
Hack 34. Design Better SQL Schemas
Hack 35. Create Bulletproof Database Access
Hack 36. Create Dynamic Database Access Objects
Hack 37. Generate CRUD Database Code
Hack 38. Read XML on the Cheap with Regular Expressions
Hack 39. Export Database Schema as XML
Hack 40. Create a Simple XML Query Handler for Database Access
Hack 41. Generate Database SQL
Hack 42. Generate Database Select Code
Hack 43. Convert CSV to PHP
Hack 44. Scrape Web Pages for Data
Hack 45. Suck Data from Excel Uploads
Hack 46. Load Your Database from Excel
Hack 47. Search Microsoft Word Documents
Hack 48. Create RTF Documents Dynamically
Hack 49. Create Excel Spreadsheets Dynamically
Hack 50. Create a Message Queue
Chapter 6. Application Design
Section 6.1. Hacks 5166: Introduction
Hack 51. Create Modular Interfaces
Hack 52. Support Wiki Text
Hack 53. Turn Any Object into an Array
Hack 54. Create XML the Right Way
Hack 55. Fix the Double Submit Problem
Hack 56. Create User-Customizable Reports
Hack 57. Create a Login System
Hack 58. Apply Security by Role
Hack 59. Migrate to MD5 Passwords
Hack 60. Make Usable URLs with mod_rewrite
Hack 61. Build an Ad Redirector
Hack 62. Add a Buy Now Button
Hack 63. Find Out Where Your Guests Are Coming From
Hack 64. Import Information from vCards
Hack 65. Create vCard Files from Your Application's Data
Hack 66. Create a Shopping Cart
Chapter 7. Patterns
Section 7.1. Hacks 6778: Introduction
Hack 67. Observe Your Objects
Hack 68. Create Objects with Abstract Factories
Hack 69. Flexible Object Creation with Factory Methods
Hack 70. Abstract Construction Code with a Builder
Hack 71. Separate What from How with Strategies
Hack 72. Link Up Two Modules with an Adapter
Hack 73. Write Portable Code with Bridges
Hack 74. Build Extensible Processing with Chains
Hack 75. Break Up Big Classes with Composites
Hack 76. Simplify APIs Using a Faзade
Hack 77. Create Constant Objects with Singletons
Hack 78. Ease Data Manipulation with Visitors
Chapter 8. Testing
Section 8.1. Hacks 7985: Introduction
Hack 79. Test Your Code with Unit Tests
Hack 80. Generate Your Unit Tests
Hack 81. Check for Broken Links
Hack 82. Test Your Application with Simulated Users
Hack 83. Test Your Application with Robots
Hack 84. Spider Your Site
Hack 85. Generate Documentation Automatically
Chapter 9. Alternative UIs
Section 9.1. Hacks 8694: Introduction
Hack 86. Create Custom Maps with MapServer
Hack 87. Build GUI Interfaces with GTk
Hack 88. Send RSS Feeds to Your IM Application Using Jabber
Hack 89. IRC Your Web Application
Hack 90. Read RSS Feeds on Your PSP
Hack 91. Search Google by Link Graph
Hack 92. Create a New Interface for Amazon.com
Hack 93. Send SMS Messages from Your IM Client
Hack 94. Generate Flash Movies on the Fly
Chapter 10. Fun Stuff
Section 10.1. Hacks 95100: Introduction
Hack 95. Create Custom Google Maps
Hack 96. Create Dynamic Playlists
Hack 97. Create a Media Upload/Download Center
Hack 98. Check Your Network Game with PHP
Hack 99. Put Wikipedia on Your PSP
Hack 100. Create a Weather Showdown[/SPOIL]
Apress.Beginning.Google.Maps.Applications.with.PHP .and.Ajax
THE EXPERT’S VOICE® IN WEB DEVELOPMENT
Covers API Version 2, including Google’s geocoder!
[SPOIL]
CHAPTER 1 Introducing Google Maps
KML: Your First Map
Wayfaring: Your Second Map
Adding the First Point
Adding the Flight Route
Adding the Destination Point
Adding a Driving Route
CHAPTER 2 Getting Started
The First Map
Keying Up
Examining the Sample Map
Specifying a New Location
Separating Code from Content
Cleaning Up
Basic Interaction
Using Map Control Widgets
Creating Markers
Opening Info Windows
A List of Points
Using Arrays and Objects
Iterating
CHAPTER 3 Interacting with the User and the Server
Going on a Treasure Hunt
Creating the Map and Marking Points
Starting the Map
Listening to User Events
Asking for More Information with an Info Window
Creating an Info Window on the Map
Embedding a Form into the Info Window
Avoiding an Ambiguous State
Controlling the Info Window Size
Using Google’s Ajax Object
Saving Data with GXmlHttp
Parsing the XML Document Using DOM Methods
Retrieving Markers from the Server
Adding Some Flair
CHAPTER 4 Geocoding Addresses
Creating an XML File with the Address Data
Using Geocoding Web Services
Requirements for Consuming Geocoding Services
The Google Maps API Geocoder
The Yahoo Geocoding API
Geocoder.us
Geocoder.ca
Services for Geocoding Addresses Outside Google’s Coverage
Caching Lookups
Building a Store Location Map
CHAPTER 5 Manipulating Third-Party Data
Using Downloadable Text Files
Downloading the Database
Parsing CSV Data
Optimizing the Import
Using Your New Database Schema
CONTENTS
Screen Scraping
A Scraping Example
Screen Scraping Considerations
CHAPTER 6 Improving the User Interface
CSS: A Touch of Style
Maximizing Your Map
Adding Hovering Toolbars
Creating Collapsible Side Panels
Scripted Style
Switching Up the Body Classes
Resizing with the Power of JavaScript
Populating the Side Panel
Getting Side Panel Feedback
Warning, Now Loading
Data Point Filtering
Showing and Hiding Points
Discovering Groupings
Creating Filter Buttons
CHAPTER 7 Optimizing and Scaling for Large Data Sets
Understanding the Limitations.
Streamlining Server-Client Communications
Optimizing Server-Side Processing
Server-Side Boundary Method
Server-Side Common Point Method
Server-Side Clustering
Custom Detail Overlay Method
Custom Tile Method
Optimizing the Client-Side User Experience
Client-Side Boundary Method
Client-Side Closest to a Common Point Method
Client-Side Clustering
Further Optimizations
CHAPTER 8 What’s Next for the Google Maps API?
Driving Directions
Integrated Google Services
KML Data
More Data Layers
Beyond the Enterprise
Interface Improvements
CHAPTER 9 Advanced Tips and Tricks
Debugging Maps
Interacting with the Map from the API
Helping You Find Your Place
Force Triggering Events with GEvent
Creating Your Own Events
Creating Map Objects with GOverlay
Choosing the Pane for the Overlay
Creating a Quick Tool Tip Overlay
Creating Custom Controls
Creating the Control Object
Creating the Container
Positioning the Container.
Using the Control
Adding Tabs to Info Windows.
Creating a Tabbed Info Window
Gathering Info Window Information and Changing Tabs
Creating a Custom Info Window
Creating the Overlay Object and Containers
Drawing a LittleInfoWindow
Implementing Your Own Map Type, Tiles, and Projection
GMapType: Gluing It Together
GProjection: Locating Where Things Are
GTileLayer: Viewing Images
The Blue Marble Map: Putting It All Together
CHAPTER 10 Lines, Lengths, and Areas
Starting Flat
Lengths and Angles
Areas
Moving to Spheres
The Great Circle
Great-Circle Lengths
Area on a Spherical Surface
Working with Polylines
Building the Polylines Demo
Expanding the Polylines Demo
What About UTM Coordinates?.
Running Afoul of the Date Line.
CHAPTER 11 Advanced Geocoding Topics
Where Does the Data Come From?
Sample Data from Government Sources
Sources of Raw GIS Data.
Geocoding Based on Postal Codes
Grabbing the TIGER/Line by the Tail
Understanding and Defining the Data
Parsing and Importing the Data
Building a Geocoding Service
APPENDIX A Finding the Data You Want
Knowing What to Look For: Search Tips
Finding the Information.
Specifying Search Terms.
Watching for Errors
The Cat Came Back: Revisiting the TIGER/Line
More on Airports
The Government Standard: The Geonames Data
Shake, Rattle, and Roll: The NOAA Goldmine
For the Space Aficionado in You
Crater Impacts
UFO/UAP Sightings
APPENDIX B Google Maps API
class GMap2
GMap2 Constructor
GMap2 Methods
class GMapOptions
GMapOptions Properties
enum GMapPane
GMapPane Constants
class GKeyboardHandler
GKeyboardHandler Bindings
GKeyboardHandler Constructor
interface GOverlay
GOverlay Constructor
GOverlay Static Method
GOverlay Abstract Methods
class GInfoWindow
GInfoWindow Methods
GInfoWindow Event
class GInfoWindowTab
GInfoWindowTab Constructor
class GInfoWindowOptions
GInfoWindowOptions Properties
class GMarker
GMarker Constructor
GMarker Methods
GMarker Events
class GMarkerOptions
GMarkerOptions Properties
class GPolyline
GPolyline Constructor
GPolyline Methods
GPolyline Event
class GIcon
GIcon Constructor
GIcon Constant
GIcon Properties
class GPoint
GPoint Constructor
GPoint Properties
GPoint Methods
class GSize
GSize Constructor
GSize Properties
GSize Methods
class GBounds
GBounds Constructor
GBounds Properties
GBounds Methods
class GLatLng
GLatLng Constructor
GLatLng Methods
GLatLng Properties
class GLatLngBounds
GLatLngBounds Constructor
GLatLngBounds Methods.
interface GControl
GControl Constructor
GControl Methods
class GControl
GControl Constructors
class GControlPosition
GControlPosition Constructor
enum GControlAnchor
GControlAnchor Constants
class GMapType
GMapType Constructor
GMapType Methods
GMapType Constants
GMapType Event
class GMapTypeOptions
GMapTypeOptions Properties
interface GTileLayer
GTileLayer Constructor
GTileLayer Methods
GTileLayer Event
Where do I get help?
What is OOP?
How do I write portable PHP code?
Chapter 2 Using Databases with PDO
What is PDO?
How do I access a database?
How do I fetch data from a table?
How do I resolve errors in my SQL queries?
How do I add data to, or modify data in, my database?
How do I protect my web site from an SQL injection attack?
How do I create flexible SQL statements?
How do I find out how many rows I’ve touched?
How do I find out a new INSERT’s row number in an autoincrementing field?
How do I search my table?
How do I work with transactions?
How do I use stored procedures with PDO?
How do I back up my database?
Chapter 3 Strings
How do I output strings safely? .
How do I preserve formatting?
How do I strip HTML tags from text?
How do I force text to wrap after a certain number of characters?
How do I perform advanced search and replace operations?
How do I break up text into an array of lines?
How do I trim whitespace from text?
How do I output formatted text?
How do I validate submitted data?
Chapter 4 Dates and Times
How do I use Unix timestamps?
How do I obtain the current date?
How do I find a day of the week?
How do I find the number of days in a month?
How do I create a calendar?
How do I store dates in MySQL?
How do I format MySQL timestamps?
How do I perform date calculations using MySQL?
Chapter 5 Forms, Tables, and Pretty URLs
How do I build HTML forms with PHP?
How do I display data in a table?
How do I display data in a sortable table?
How do I create a customized data grid?
How do I make “pretty” URLs in PHP?
Chapter 6 Working with Files
How do I read a local file?
How do I use file handles?
How do I modify a local file?
How do I access information about a local file?
How do I examine directories with PHP?
How do I display PHP source code online?
How do I store configuration information in a file?
How do I access a file on a remote server?
How do I use FTP from PHP?
How do I manage file downloads with PHP?
How do I create compressed ZIP/TAR files with PHP?
How do I work with files using the Standard PHP Library in PHP
5?
Chapter 7 Email
How do I send a simple email?
How do I simplify the generation of complex emails?
How do I add attachments to messages?
How do I send HTML email?
How do I mail a message to a group of people?
How do I handle incoming mail with PHP?
How can I protect my site against email injection attacks?
Chapter 8 Images
How do I specify the correct image MIME type?
How do I create thumbnail images?
How do I resize images without stretching them?
How can I put together a simple thumbnail gallery?
How do I extract EXIF information from images?
How do I add a watermark to an image?
How do I display charts and graphs with PHP?
How do I prevent the hotlinking of images?
How do I create images that can be verified by humans only?
Chapter 9 Error Handling
What error levels does PHP report?
What built-in settings does PHP offer for error handling?
How can I trigger PHP errors?
How do I implement a custom error handler with PHP?
How do I log and report errors?
How can I use PHP exceptions for error handling?
How do I create a custom Exception class?
How do I implement a custom exception handler with PHP?
How can I handle PHP errors as if they were exceptions?
How do I display errors and exceptions gracefully?
How do I redirect users to another page following an error
condition?
Chapter 10 Access Control
How do I use HTTP authentication?
How do I use sessions?
How do I create a session class?
How do I create a class to control access to a section of the site?
How do I build a registration system?
How do I deal with members who forget their passwords?
How do I let users change their passwords?
How to do I build a permissions system?
How do I store sessions in a database?
Chapter 11 Caching
How do I prevent web browsers from caching a page?
How do I control client-side caching?
How do I examine HTTP headers in my browser?
How do I cache file downloads with Internet Explorer?
How do I use output buffering for server-side caching?
How do I cache just the parts of a page that change infrequently?
How do I use PEAR::Cache_Lite for server-side caching?
What configuration options does Cache_Lite support?
How do I purge the Cache_Lite cache?
How do I cache function calls?
Chapter 12 XML and Web Services
Which XML technologies are available in PHP 5?
Why should I use PHP’s XML extensions instead of PHP string functions?
How do I parse an RSS feed?
How do I generate an RSS feed?
How do I search for a node or content in XML?
How can I consume XML-RPC web services?
How do I serve my own XML-RPC web services?
How can I consume SOAP web services?
How do I serve SOAP web services?
How can I consume REST services?
How can I serve REST services?
Chapter 13 Best Practices
How can I document my code for later reference by myself or others?
How can I ensure future changes to my code won’t break current functionality?
I’ve reviewed some of my old code, and it’s horrible. How can I make it better?
How do I track revisions to my project’s code?
How can I maintain multiple versions of a single codebase?
How can I write distributable code?
How can I determine what remains to be tested?
How can I deploy code safely?[/SPOIL]
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
O'Reilly PHP hacks
CHM в архиве, 3.82 mb
[SPOIL] Chapter 1. Installation and Basics
Section 1.1. Hacks 12: Introduction
Hack 1. Install PHP
Hack 2. Install PEAR Modules
Chapter 2. Web Design
Section 2.1. Hacks 310: Introduction
Hack 3. Create a Skinnable Interface
Hack 4. Build a Breadcrumb Trail
Hack 5. Create HTML Boxes
Hack 6. Add Tabs to Your Web Interface
Hack 7. Give Your Customers Formatting Control with XSL
Hack 8. Build Lightweight HTML Graphs
Hack 9. Properly Size Image Tags
Hack 10. Send HTML Email
Chapter 3. DHTML
Section 3.1. Hacks 1126: Introduction
Hack 11. Put an Interactive Spreadsheet on Your Page
Hack 12. Create Pop-Up Hints
Hack 13. Create Drag-and-Drop Lists
Hack 14. Build Dynamic HTML Graphs
Hack 15. Section Your Content with Spinners
Hack 16. Create Drop-Down Stickies
Hack 17. Create Dynamic Navigation Menus
Hack 18. Obscure JavaScript Dynamically
Hack 19. Build a DHTML Binary Clock
Hack 20. Tame Ajax with JSON
Hack 21. Make a DHTML Slideshow
Hack 22. Add Vector Graphics with PHP
Hack 23. Build a Color Selector
Hack 24. Create Link Graphs
Hack 25. Create an Interactive Calendar
Hack 26. Create the Google Maps Scrolling Effect
Chapter 4. Graphics
Section 4.1. Hacks 2733: Introduction
Hack 27. Create Thumbnail Images
Hack 28. Create Beautiful Graphics with SVG
Hack 29. Simplify Your Graphics with Objects
Hack 30. Split One Image into Multiple Images
Hack 31. Create Graphs with PHP
Hack 32. Create Image Overlays
Hack 33. Access Your iPhoto Pictures with PHP
Chapter 5. Databases and XML
Section 5.1. Hacks 3450: Introduction
Hack 34. Design Better SQL Schemas
Hack 35. Create Bulletproof Database Access
Hack 36. Create Dynamic Database Access Objects
Hack 37. Generate CRUD Database Code
Hack 38. Read XML on the Cheap with Regular Expressions
Hack 39. Export Database Schema as XML
Hack 40. Create a Simple XML Query Handler for Database Access
Hack 41. Generate Database SQL
Hack 42. Generate Database Select Code
Hack 43. Convert CSV to PHP
Hack 44. Scrape Web Pages for Data
Hack 45. Suck Data from Excel Uploads
Hack 46. Load Your Database from Excel
Hack 47. Search Microsoft Word Documents
Hack 48. Create RTF Documents Dynamically
Hack 49. Create Excel Spreadsheets Dynamically
Hack 50. Create a Message Queue
Chapter 6. Application Design
Section 6.1. Hacks 5166: Introduction
Hack 51. Create Modular Interfaces
Hack 52. Support Wiki Text
Hack 53. Turn Any Object into an Array
Hack 54. Create XML the Right Way
Hack 55. Fix the Double Submit Problem
Hack 56. Create User-Customizable Reports
Hack 57. Create a Login System
Hack 58. Apply Security by Role
Hack 59. Migrate to MD5 Passwords
Hack 60. Make Usable URLs with mod_rewrite
Hack 61. Build an Ad Redirector
Hack 62. Add a Buy Now Button
Hack 63. Find Out Where Your Guests Are Coming From
Hack 64. Import Information from vCards
Hack 65. Create vCard Files from Your Application's Data
Hack 66. Create a Shopping Cart
Chapter 7. Patterns
Section 7.1. Hacks 6778: Introduction
Hack 67. Observe Your Objects
Hack 68. Create Objects with Abstract Factories
Hack 69. Flexible Object Creation with Factory Methods
Hack 70. Abstract Construction Code with a Builder
Hack 71. Separate What from How with Strategies
Hack 72. Link Up Two Modules with an Adapter
Hack 73. Write Portable Code with Bridges
Hack 74. Build Extensible Processing with Chains
Hack 75. Break Up Big Classes with Composites
Hack 76. Simplify APIs Using a Faзade
Hack 77. Create Constant Objects with Singletons
Hack 78. Ease Data Manipulation with Visitors
Chapter 8. Testing
Section 8.1. Hacks 7985: Introduction
Hack 79. Test Your Code with Unit Tests
Hack 80. Generate Your Unit Tests
Hack 81. Check for Broken Links
Hack 82. Test Your Application with Simulated Users
Hack 83. Test Your Application with Robots
Hack 84. Spider Your Site
Hack 85. Generate Documentation Automatically
Chapter 9. Alternative UIs
Section 9.1. Hacks 8694: Introduction
Hack 86. Create Custom Maps with MapServer
Hack 87. Build GUI Interfaces with GTk
Hack 88. Send RSS Feeds to Your IM Application Using Jabber
Hack 89. IRC Your Web Application
Hack 90. Read RSS Feeds on Your PSP
Hack 91. Search Google by Link Graph
Hack 92. Create a New Interface for Amazon.com
Hack 93. Send SMS Messages from Your IM Client
Hack 94. Generate Flash Movies on the Fly
Chapter 10. Fun Stuff
Section 10.1. Hacks 95100: Introduction
Hack 95. Create Custom Google Maps
Hack 96. Create Dynamic Playlists
Hack 97. Create a Media Upload/Download Center
Hack 98. Check Your Network Game with PHP
Hack 99. Put Wikipedia on Your PSP
Hack 100. Create a Weather Showdown[/SPOIL]
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
Apress.Beginning.Google.Maps.Applications.with.PHP .and.Ajax
THE EXPERT’S VOICE® IN WEB DEVELOPMENT
Covers API Version 2, including Google’s geocoder!
[SPOIL]
CHAPTER 1 Introducing Google Maps
KML: Your First Map
Wayfaring: Your Second Map
Adding the First Point
Adding the Flight Route
Adding the Destination Point
Adding a Driving Route
CHAPTER 2 Getting Started
The First Map
Keying Up
Examining the Sample Map
Specifying a New Location
Separating Code from Content
Cleaning Up
Basic Interaction
Using Map Control Widgets
Creating Markers
Opening Info Windows
A List of Points
Using Arrays and Objects
Iterating
CHAPTER 3 Interacting with the User and the Server
Going on a Treasure Hunt
Creating the Map and Marking Points
Starting the Map
Listening to User Events
Asking for More Information with an Info Window
Creating an Info Window on the Map
Embedding a Form into the Info Window
Avoiding an Ambiguous State
Controlling the Info Window Size
Using Google’s Ajax Object
Saving Data with GXmlHttp
Parsing the XML Document Using DOM Methods
Retrieving Markers from the Server
Adding Some Flair
CHAPTER 4 Geocoding Addresses
Creating an XML File with the Address Data
Using Geocoding Web Services
Requirements for Consuming Geocoding Services
The Google Maps API Geocoder
The Yahoo Geocoding API
Geocoder.us
Geocoder.ca
Services for Geocoding Addresses Outside Google’s Coverage
Caching Lookups
Building a Store Location Map
CHAPTER 5 Manipulating Third-Party Data
Using Downloadable Text Files
Downloading the Database
Parsing CSV Data
Optimizing the Import
Using Your New Database Schema
CONTENTS
Screen Scraping
A Scraping Example
Screen Scraping Considerations
CHAPTER 6 Improving the User Interface
CSS: A Touch of Style
Maximizing Your Map
Adding Hovering Toolbars
Creating Collapsible Side Panels
Scripted Style
Switching Up the Body Classes
Resizing with the Power of JavaScript
Populating the Side Panel
Getting Side Panel Feedback
Warning, Now Loading
Data Point Filtering
Showing and Hiding Points
Discovering Groupings
Creating Filter Buttons
CHAPTER 7 Optimizing and Scaling for Large Data Sets
Understanding the Limitations.
Streamlining Server-Client Communications
Optimizing Server-Side Processing
Server-Side Boundary Method
Server-Side Common Point Method
Server-Side Clustering
Custom Detail Overlay Method
Custom Tile Method
Optimizing the Client-Side User Experience
Client-Side Boundary Method
Client-Side Closest to a Common Point Method
Client-Side Clustering
Further Optimizations
CHAPTER 8 What’s Next for the Google Maps API?
Driving Directions
Integrated Google Services
KML Data
More Data Layers
Beyond the Enterprise
Interface Improvements
CHAPTER 9 Advanced Tips and Tricks
Debugging Maps
Interacting with the Map from the API
Helping You Find Your Place
Force Triggering Events with GEvent
Creating Your Own Events
Creating Map Objects with GOverlay
Choosing the Pane for the Overlay
Creating a Quick Tool Tip Overlay
Creating Custom Controls
Creating the Control Object
Creating the Container
Positioning the Container.
Using the Control
Adding Tabs to Info Windows.
Creating a Tabbed Info Window
Gathering Info Window Information and Changing Tabs
Creating a Custom Info Window
Creating the Overlay Object and Containers
Drawing a LittleInfoWindow
Implementing Your Own Map Type, Tiles, and Projection
GMapType: Gluing It Together
GProjection: Locating Where Things Are
GTileLayer: Viewing Images
The Blue Marble Map: Putting It All Together
CHAPTER 10 Lines, Lengths, and Areas
Starting Flat
Lengths and Angles
Areas
Moving to Spheres
The Great Circle
Great-Circle Lengths
Area on a Spherical Surface
Working with Polylines
Building the Polylines Demo
Expanding the Polylines Demo
What About UTM Coordinates?.
Running Afoul of the Date Line.
CHAPTER 11 Advanced Geocoding Topics
Where Does the Data Come From?
Sample Data from Government Sources
Sources of Raw GIS Data.
Geocoding Based on Postal Codes
Grabbing the TIGER/Line by the Tail
Understanding and Defining the Data
Parsing and Importing the Data
Building a Geocoding Service
APPENDIX A Finding the Data You Want
Knowing What to Look For: Search Tips
Finding the Information.
Specifying Search Terms.
Watching for Errors
The Cat Came Back: Revisiting the TIGER/Line
More on Airports
The Government Standard: The Geonames Data
Shake, Rattle, and Roll: The NOAA Goldmine
For the Space Aficionado in You
Crater Impacts
UFO/UAP Sightings
APPENDIX B Google Maps API
class GMap2
GMap2 Constructor
GMap2 Methods
class GMapOptions
GMapOptions Properties
enum GMapPane
GMapPane Constants
class GKeyboardHandler
GKeyboardHandler Bindings
GKeyboardHandler Constructor
interface GOverlay
GOverlay Constructor
GOverlay Static Method
GOverlay Abstract Methods
class GInfoWindow
GInfoWindow Methods
GInfoWindow Event
class GInfoWindowTab
GInfoWindowTab Constructor
class GInfoWindowOptions
GInfoWindowOptions Properties
class GMarker
GMarker Constructor
GMarker Methods
GMarker Events
class GMarkerOptions
GMarkerOptions Properties
class GPolyline
GPolyline Constructor
GPolyline Methods
GPolyline Event
class GIcon
GIcon Constructor
GIcon Constant
GIcon Properties
class GPoint
GPoint Constructor
GPoint Properties
GPoint Methods
class GSize
GSize Constructor
GSize Properties
GSize Methods
class GBounds
GBounds Constructor
GBounds Properties
GBounds Methods
class GLatLng
GLatLng Constructor
GLatLng Methods
GLatLng Properties
class GLatLngBounds
GLatLngBounds Constructor
GLatLngBounds Methods.
interface GControl
GControl Constructor
GControl Methods
class GControl
GControl Constructors
class GControlPosition
GControlPosition Constructor
enum GControlAnchor
GControlAnchor Constants
class GMapType
GMapType Constructor
GMapType Methods
GMapType Constants
GMapType Event
class GMapTypeOptions
GMapTypeOptions Properties
interface GTileLayer
GTileLayer Constructor
GTileLayer Methods
GTileLayer Event
PDF, 14.8 mb
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.