Skip to Content.
Sympa Menu

discuss - Re: [opennic-discuss] The website

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

Re: [opennic-discuss] The website


Chronological Thread 
  • From: nanashiRei <nanashi.rei AT gmail.com>
  • To: discuss AT lists.opennicproject.org
  • Subject: Re: [opennic-discuss] The website
  • Date: Wed, 12 Dec 2012 00:31:23 +0100
  • Organization: YaS-Online

This will only work as long as the PHP script is called from the Client
and not from the backend of WordPress, god knows how it's done.

Am 11.12.2012 22:28, schrieb Hunter 9999:
> Am 10.12.2012 um 03:30 schrieb nanashiRei <nanashi.rei AT gmail.com>:
>> Your Server is calling the script, internally, so yes. It can't even
>> know there is a client. You would have to use an <iframe> to be
>> perfectly transparent.
>
> Not really.
> You can get the Client-IP by:
> $_SERVER['REMOTE_ADDR'];
> Then you can grab the Script with the IP in the URL.
>
> Only add
> $ip = $_SERVER['REMOTE_ADDR'];
> before $ch = curl_init();
>
> Here an working example:
> http://test.hunter-9999.de/geoip
>
> Here the modified Source:
> http://test.hunter-9999.de/geoip/source
>
>

--
David "nanashiRei" Marner
Founder of YaS-Online.net
Service from Gamers, for Gamers.

PGP public key @ http://nanashirei.me/pgp
Commercial contact: nanashi.rei AT senshi.jp

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.19.

Top of Page