Localisation ip

Bonjour,
je cherche un script comme http://www.localiser-ip.com/ Merci

3 réponses

  1. Bonjour,

    Je ne sais pas si tu trouveras ce que tu cherches sur le site que je vais te proposer, mais en tout cas, ça m'a beaucoup aidé à comprendre et bien utiliser Google map en fonction de mes besoins. Le lien : https://www.weboblog.fr/
    1. http://www.siteduzero.com/tutoriel-3-306955-geolocalisez-vos-visiteurs-grace-a-leur-ip.html
      1. J'ai fait se code
        <?php 
        if($_GET){
        $line = file_get_contents('http://www.localiser-ip.com/?ip='.$_GET["ip"].'');
        } else {
        $line = file_get_contents('http://www.localiser-ip.com/?ip='.$_SERVER["REMOTE_ADDR"].'');
        }
        $find = array();
        $find[0] = '/ABQIAAAAheSr-Z5FV9I2vVJRxr7U4RRjllMUvLrJYXtxpM5Ll8YYuEMTpBS1ApuykfsiW3nK3u1q3nroVVmLCA/';
        $find[1] = '/<form action=\'http:\/\/www.localiser-IP.com\' method=\'get\'>/';
        $find[2] = '/www.localiser-IP.com\//';
        $find[3] = '/140/';
        $find[4] = '/#93B231/';
        $find[5] = '/209/';
        $find[6] = '/http:\/\/www.localiser-IP.com/';
        $find[7] = '/Localiser-IP.com/';
        
        
        $new = array();
        //Key google MAPS
        $new[0] = 'ABQIAAAA-x2RFf9r-mNw8dZQO4ccCRRI9Maui834-lv9G-Zn1p2KA0f15BTVdmO1qRfcFK5QQw7kTrgMe_0oYw';
        $new[1] = '<form action=\'\' method=\'get\'>';
        //URL de votre site le mien http://gilbert.olympe-network.com/ip.php PAS METTRE LE HTTP
        $new[2] = 'gilbert.olympe-network.com/ip.php';
        $new[3] = '1';
        $new[4] = '#000';
        $new[5] = '1';
        $new[6] = '';
        $new[7] = 'Localiser-IP';
        
        $lines = preg_replace($find, $new, $line);
        
        echo $lines;
        
        ?>