SERVER_ADDR issue!
Posted: Sun Dec 06, 2009 11:40 am
Hey all!
I am new here and I am really needing badly to figure this out...
I am working on a remote authenticating algorythm using PHP, and I have two simple scripts (a main one and an include one), like this:
Main script at client website...
Checkpar2.php script at MY website...
As you can notice, I am trying to capture the IP address of the client. The problem is that it is echoing my IP and not the client IP. I am really puzzled with that, because since the second script is being included in the first script and not ran as standalone, I wouldnt suppose to work as part of the first script, and therefore, echo the IP of the server where the first script is???
What am I missing here??
Thank is advance!
I am new here and I am really needing badly to figure this out...
I am working on a remote authenticating algorythm using PHP, and I have two simple scripts (a main one and an include one), like this:
Main script at client website...
Code: Select all
<?php
include "http://www.mywebsite.com/checkpar2.php";
?>
Code: Select all
<?php
echo $_SERVER['SERVER_ADDR'];
?>
What am I missing here??
Thank is advance!