Archive for the 'PHP' Category

Published by Shawn on 24 Sep 2008

Hotspots.php Google Map Script

A visitor to the site had requested the Fishing Hotspots Script that I wrote several years ago. I figured it can’t hurt to give it away since the code is pretty bad and all.

I decided to throw this script on the site as a download for all to enjoy. It was one of my first attempts at some sort of Web 2.0 fishing map using Google Maps. I was big into mashups back then which lead me to create this beast!

The script hasn’t been tested after I stripped out all my database info and Google Maps key and anything else that would give away my deepest darkest secrets. So, you get what will appear like a work in progress or a PHP 101 final project. There are a few scripts included that I didn’t write, so thanks to them for those.

If you care to comment, or have any questions, feel free to post such comments/questions and I will try to respond in a reasonable fashion (time-wise, not fashion-wise).

So here it is in all of it’s “Web 1.0 in a Web 2.0 World” glory:

Download PHP Hotspots Script »

Enjoy!

heh…

Published by Shawn on 13 Apr 2008

KML Generator for Google Earth - written in PHP

A What Generator?

This script is a homemade botch that I wrote because I didn’t like any of the other KML generating scripts out there.

The one that I did find is for PHP5. Hmph..

Basically this script grabs info from my Fishing Spots MySQL database and fires it out as xml, which is
in turn, read by Google Earth as a .kml file.

On with the script

Ok, enough said. Here is the source:

www.shawngo.com/xgenerator.php

And here is the actual KML File Output:
www.shawngo.com/generator.php

And last but not least, the Google Maps + Fishing Spots page:
www.shawngo.com/hotspots.php

Next »