PHP Archive

  • Google Maps API part 2: Retrieving Postcodes from your database

    Google Maps API part 2: Retrieving Postcodes from your database

    OK, this is a simple way to get your postcode/ address location returned and displayed via the Google Maps API on your own website. I’ll cover the ‘nearest store locator’ scenario in another post where you want places with a certain radius of an inputted...

    Project info

  • Google Maps API part 1: Accurate Geocoding for UK Postcodes

    Google Maps API part 1: Accurate Geocoding for UK Postcodes

    Recently I had to build a system that would take an address, pass it to google and return latitude and longitude values. The result is then stored for later use and display on Google maps. However, firstly I found that the default XML geocoding service...

    Project info

  • Using Javascript/ AJAX to post HTML form data

    Using Javascript/ AJAX to post HTML form data

    Why would you need to do this? Well for instance if you were using 3rd party AJAX APIs and you wanted to capture the data from them perhaps, or maybe you just have a complex form. Or you could use this for form validation to...

    Project info

  • Upload a File Using PHP

    Upload a File Using PHP

    Ok so you want to upload a file to your webspace. Easy enough you just need some sort of server-side language. In this case it’s PHP, this tutorial should work with versions 4 upwards. So we’ll build just 1 file to handle the upload, display...

    Project info

  • Creating XML from PHP/ MySQL for use with SPRY

    Creating XML from PHP/ MySQL for use with SPRY

    So lets say for example you have a table in your database and you want to return some results, pretty easy with PHP/ MySQL and I dare say easy enough with other languages. Now rather than return the results to the page and format them...

    Project info