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: Hunter 9999 <mail AT hunter-9999.de>
  • To: "discuss AT lists.opennicproject.org" <discuss AT lists.opennicproject.org>
  • Subject: Re: [opennic-discuss] The website
  • Date: Wed, 12 Dec 2012 01:49:35 +0100

Am 12.12.2012 um 00:31 schrieb nanashiRei <nanashi.rei AT gmail.com>:
> 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.

I believe that Wordpress get the Content ob the Global-Var and put in an own
Var.
But at the Moment I don't remember that Var-Name.
I think it is $wb.
I look at this tomorrow.

> 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



Archive powered by MHonArc 2.6.19.

Top of Page