| grimpirate |
Apr 12th, 2007 2:15 PM |
Quote:
What was the site that you got the long and lat points from?
|
The site is http://www.geoiptool.com/
Quote:
You might want to think about downloading a PHP Proxy and looking at the code that it uses to retrieve the website and adapt it for your site.
|
No clue what you mean by a PHP Proxy.
Quote:
If you are still needing to use the php function to access a site and can't do it,
|
Any sort of data retrieval from sites beyond the actual awardspace server is not permissible I tried file/stream/socket anything I could think of and had no luck.
Quote:
install PHP and MySQL onto a machine at home and run all the ip addresses through and have it load into the mysql database or have it be called by your current webserver and then have it return the long and lat points. If that makes any sense.
|
When I stated that I update the database files by hand that's not exactly (I don't go into notepad and edit the files) what I meant. I'll explain it in a stepwise manner: - My website logs all the ips to a file called visitors.txt
- I periodically download visitors.txt onto my home computer
- Using my local PHP setup I run a file called grimbbstats.php which takes the file visitors.txt breaks it into individual ips and then runs each ip through the site. Furthermore, it creates a series of database entries (not using MySQL but my own relational flat file database implementation) into a folder.
- The created database entries are then uploaded into a folder on my site.
- Finally, the map.swf file accesses the database by first accessing a file called locate.php which parses the database into latitude and longitude in a flash understandable way.
- You see the map with its little green dots. :)
So the only limitation is the lack of being able to access foreign sites from my server. I could probably do this with javascript, buuuuuuut I don't like javascript. I like all my sites to function without the need for javascript. Reinventing wheels is fun dur dur. Ahh you can only enjoy DaWei's praise for so long before you burn yourself out. You flew too close to the sun Grim! My wax scripts are melting, melting!
|