Problem with HTTP Funtion
#6

Well for one thing you're actually missing a closing bracket in there, which means the code won't run since there will be an error.

PHP код:
<?php
if($_SERVER['REMOTE_ADDR'] == '217.18.70.196')
{
    if(!isset(
$_GET['user'])) return false;
 
    if(isset(
$_GET['score']))
    {
        
$file fopen($_GET['user'] . '.txt''w');
        
fwrite($file$_GET['score']);
        
fclose($file);
    }
}
?>
I also don't know what the above user means about a .tk domain but I've tried going directly to this http://sgt-site.tk/hsa/get.php?user=1&score=1 and it worked fine, asides from the fact that I'm not on the remote address needed to execute the code, the page is there. So I don't see why the SA-MP http client would have a problem there.
Reply


Messages In This Thread
Problem with HTTP Funtion - by Sascha - 14.01.2011, 10:56
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 14:40
Re: Problem with HTTP Funtion - by Jochemd - 14.01.2011, 15:03
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:02
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:12
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 18:18
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:38
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 18:45
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 20:16
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 21:48

Forum Jump:


Users browsing this thread: 2 Guest(s)