discuss AT lists.opennicproject.org
Subject: Discuss mailing list
List archive
- From: Peter Green <peter AT greenpete.free>
- To: discuss AT lists.opennicproject.org
- Subject: Re: [opennic-discuss] The website
- Date: Sat, 08 Dec 2012 01:42:12 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Excellent, thanks, I look forwards to implimenting it in the morning.
Peter
nanashiRei <nanashi.rei AT gmail.com> wrote:
>I added stuff to remove bloated code that eats memory. And i added a
>limit option (kinda). I use gist because you can change the code on
>there, i made it public, and it will save a revision history. Everyone
>can browse that history. That's way better then email.
>
>Am 08.12.2012 02:24, schrieb Peter Green:
>> Have you rewritten the code or at least added limit=2?
>>
>> From what I can see on my tiny phone screen the code is different.
>>
>> Anyway, I'll take a proper look in the morning, thanks.
>>
>> Peter
>>
>> nanashiRei <nanashi.rei AT gmail.com> wrote:
>>
>>> https://gist.github.com/4238010
>>
>>> Am 07.12.2012 22:30, schrieb Peter Green:
>>>> Hi,
>>>>
>>>> I have the code working, thanks, but it's giving a lot of results.
>>> How can I limit it to just two please?
>>>>
>>>> Thanks, Peter
>>>>
>>>>> the pertinent code:
>>>>
>>>>> $ch = curl_init();
>>>>> curl_setopt($ch, CURLOPT_URL,
>>>>> "http://sourpuss.net/opennic.oss/geoip/geotxt3.php?ip=$ip".$res);
>>>>> ob_start();
>>>>> curl_exec($ch);
>>>>> $res = ob_get_contents();
>>>>> curl_close($ch);
>>>>> ob_end_clean();
>>>>> $results = array_filter(preg_split("/\s+/ ", $res));
>>>>
>>>>> $brk = '';
>>>>> if($noformat == 0)
>>>>> {
>>>>> print "<br/>\n";
>>>>> print "Closest Tier 2 servers to your location (ordered from
>nearest
>>> to
>>>>> farthest):<br/>\n";
>>>>> $brk = "<br/>";
>>>>> }
>>>>
>>>>> foreach($results as $server)
>>>>> {
>>>>> print $server.$brk."\n";
>>>>> }
>>>>
>>>>> --Brian
>>>>
>>>>
>>>>
>>>>
>>>> --------
>>>> You are a member of the OpenNIC Discuss list.
>>>> You may unsubscribe by emailing
>>> discuss-unsubscribe AT lists.opennicproject.org
>>>>
>>
>>
>>
>>
>> --------
>> You are a member of the OpenNIC Discuss list.
>> You may unsubscribe by emailing
>discuss-unsubscribe AT lists.opennicproject.org
>>
- --
Wanged from my Kaiser by a mischievous pixie!
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8
iQFBBAEBCAArBQJQwprzJBxQZXRlciBHcmVlbiA8cGV0ZXJAZ3JlZW5wZXRlLmNv
LnVrPgAKCRDwSqngs+9nOQTZB/0Wg3ZjpVZxdQnWbKuYuzvkXMPywoX1scSZY3hR
k7e/1amS/oE0ewOgStD96m6FgNTFljuUe5rolr9heQf847bbJnoqP6b0BEXR1aKW
V30JIZQXKWyfZvxiTlas4J85nJMZQukZMqW3fOnmA9Abd+LLG6YKyrfXURmYj+hr
F/DtrfXKjbAjeuRAkhDk+T21tVvooaapQUnH7Id6TXHxOWfeZTwpApd+zxwoEgZu
IZHTw7IUQkyOkvC/1SVWXyaTlANDs9cFI6FQ1UzYk3JaPNFID4WGlG1hZbaWmPyq
Fly6ZB6ZeRxqeFaJwwF5YtwSdEfL+erKV6fqQ1P1llDAdIRh
=3BVx
-----END PGP SIGNATURE-----
- Re: [opennic-discuss] The website, (continued)
- Re: [opennic-discuss] The website, Quinn Wood, 12/05/2012
- Re: [opennic-discuss] The website, Richard Lyons, 12/06/2012
- Re: [opennic-discuss] The website, Peter Green, 12/06/2012
- Re: [opennic-discuss] The website, Peter Green, 12/06/2012
- Re: [opennic-discuss] The website, Brian Koontz, 12/06/2012
- Re: [opennic-discuss] The website, Peter Green, 12/06/2012
- Re: [opennic-discuss] The website, Peter Green, 12/07/2012
- Re: [opennic-discuss] The website, nanashiRei, 12/07/2012
- Re: [opennic-discuss] The website, Peter Green, 12/07/2012
- Re: [opennic-discuss] The website, nanashiRei, 12/07/2012
- Re: [opennic-discuss] The website, Peter Green, 12/07/2012
- Re: [opennic-discuss] The website, nanashiRei, 12/07/2012
- Re: [opennic-discuss] The website, Peter Green, 12/08/2012
- Re: [opennic-discuss] The website, nanashiRei, 12/08/2012
- Re: [opennic-discuss] The website, Peter Green, 12/08/2012
- Re: [opennic-discuss] The website, Peter Green, 12/08/2012
- Re: [opennic-discuss] The website, nanashiRei, 12/08/2012
- Re: [opennic-discuss] The website, Peter Green, 12/09/2012
- Re: [opennic-discuss] The website, Peter Green, 12/09/2012
- Re: [opennic-discuss] The website, Julian DeMarchi, 12/10/2012
- Re: [opennic-discuss] The website, Steven Coutts, 12/11/2012
Archive powered by MHonArc 2.6.19.