Search found 2 matches

by jjmpsp
Sat Oct 22, 2011 10:35 am
Forum: Tutorials
Topic: API tutorial help
Replies: 1
Views: 558

API tutorial help

I'm having problems getting the api_interfece.php code to work :( <?php class foodclass{ const API_URL = 'http://localhost/food/api.php'; // internal function for sending post data private static function send_post_data($data) { $url = parse_url(self::API_URL); $boundary = md5(microtime(true)); $pos...
by jjmpsp
Fri Oct 21, 2011 6:20 pm
Forum: PHP
Topic: Wrong IP Address outputted ?
Replies: 1
Views: 367

Wrong IP Address outputted ?

For some reason, when I output my ip address in PHP, I get this result:
echo $_SERVER['REMOTE_ADDR'];
::1
I'm running an XAMPP installation on a new windows 7 64bit machine.
Does anyone know what is happening ? This is really bugging me and I can't seem to find a solution :(