Get Latitude and Longitude from your Postal Address

We generally do not know the latitude and longitude of our area or any other area if we have needed to get the information. Sometimes we have to Google for getting this information. It is not a big issue to find out the approximate latitude  and longitude for any location and it can easily be done in PHP.


Here I am writing the procedures to do the same.

  1. Create a PHP page say ‘postal_lang_long.php’ .
  2. Put the following codes in the PHP file.
  3. Now place your PHP file in your web server and open the file in any browser.
  4. Now in your browser you can see a text box asking for the name of the place.
  5. Enter the place-name and hit ‘go’ button.
  6. That’s all, you will be shown the latitude and longitude of your location.
Continue Reading

Know the Popular Web Server Error Codes

Many a time when we try to visit any particular web page, we get an error code displaying in lieu of the original page. Have you ever surprised what that error code meant? Here is a list of the most popular error codes and their description. The first thing you should do anytime you get an error code is to make sure that you have entered the correct web page addressed.

• 100 Continue
• 101 Switching Protocols
• 102 Processing
• 200 OK
• 201 Created
• 202 Accepted
• 203 Non-Authoritative Information
• 204 No Content
• 205 Reset Content
• 206 Partial Content
• 207 Multi-Status
• 300 Multiple Choices
• 301 Moved Permanently
• 302 Found
• 303 See Other
• 304 Not Modified
• 305 Use Proxy
• 307 Temporary Redirect
• 400 Bad Request
• 401 Authorization Required
• 402 Payment Required
• 403 Forbidden
• 404 Not Found
• 405 Method Not Allowed
• 406 Not Acceptable
• 407 Proxy Authentication Required
• 408 Request Time-out
• 409 Conflict
• 410 Gone
• 411 Length Required
• 412 Precondition Failed
• 413 Request Entity Too Large
• 414 Request-URI Too Large
• 415 Unsupported Media Type
• 416 Requested Range Not Satisfiable
• 417 Expectation Failed
• 422 Unprocessed Entity
• 423 Locked
• 424 Failed Dependency
• 425 No code
• 426 Upgrade Required
• 500 Internal Server Error
• 501 Method Not Implemented
• 502 Bad Gateway
• 503 Service Temporarily Unavailable
• 504 Gateway Time-out
• 505 HTTP Version Not Supported
• 506 Variant Also Negotiates
• 507 Insufficient Storage
• 510 Not Extended

Continue Reading

Place Your Location on the Google Map in Your Site

Do you want to place your custom locations on the Google Map and the map will be in your web page? If you have basic knowledge of HTML it will be a very easy task to you. For implementing the Google Map you will have to get the Google Map API key from Google. Google Map API  to get the API or you can visit the following URL.

After getting the API key you have to follow the steps mentioned below:

  1. Get the Latitude & Longitude of your place.
  2. Put your API key in the following JavaScript part and place it before closing head tag.
 <script src=";v=2&amp;sensor=false&amp;key=Your Key will be here" type="text/javascript"></script>

You have to define Latitude & Longitude in the code like as follows.

 var point = new GLatLng(43.82589,-79.10040);

Here is the full codes of the Google Map

Continue Reading