HTTP and PHP
#1

Hey. My question is simple. How do I return data to SA-MP Script from PHP Page.

PAWN Code
pawn Код:
HTTP(playerid,HTTP_POST,"mg-s.us/country.php",string,"GetPlayerCountry");
PHP Part (country.php)
PHP код:
<?
    $ip 
$_POST['ip'];
    
$country geoip_country_name_by_name($ip);
?>
Now I want to know how do declare what has to be sent back to SA-MP Server?
Reply


Messages In This Thread
HTTP and PHP - by [MG]Dimi - 07.07.2013, 10:43
Re: HTTP and PHP - by InfiniTy. - 07.07.2013, 10:51
Re: HTTP and PHP - by Vince - 07.07.2013, 10:52
Re: HTTP and PHP - by [MG]Dimi - 07.07.2013, 10:53
Re: HTTP and PHP - by InfiniTy. - 07.07.2013, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)