example code

Support on setups where you copy the hostip.info database locally.

Moderator: Moderators

example code

Postby leon on Tue Apr 11, 2006 6:32 am

I have downloaded the lastest database with rsync and the latest source code from the SVN repository.

I think the source code however is for another (older?) database structure.

Does anyone have an example source code to use with the new database structure?

Gr,
Leon
leon
n00b
 
Posts: 2
Joined: Tue Apr 11, 2006 6:27 am

Postby Mister on Wed Apr 12, 2006 11:16 am

Hope you know any php :D
You can take a look at my code ...

http://geoip.mine.nu/ge/other_script/index_demo.php

Plz ask if there is any question :D
<?
echo "Creating GE-GEOIP";
echo "Using hostip.info db :-)";
?>
Mister
n00b
 
Posts: 14
Joined: Sun Mar 19, 2006 2:40 pm
Location: SE

Postby leon on Wed Mar 21, 2007 6:20 am

Your page doesnt work anymore (maybe I'am a bit late :)).

So far I can't figure out the ip-address part. This is the code I have now to convert the ipaddress:

$longip = sprintf("%u", ip2long($ip));

Anyone know what is wrong?
leon
n00b
 
Posts: 2
Joined: Tue Apr 11, 2006 6:27 am

Postby hernick_james on Tue Dec 18, 2007 4:22 am

Why dont you try Oxygen Code generator its really a nice thing.

www dot techinceptions dot com/productsdot html

You get pure commented code, paging (data source paging), caching etc.

And no dlls (but you can choose an option to compile the output).
hernick_james
n00b
 
Posts: 3
Joined: Thu Dec 06, 2007 2:43 am


Return to Hostip.info database local copy support

Who is online

Users browsing this forum: No registered users and 1 guest