16.02.2010, 17:03
this is my php file:
<?
require "SampRconAPI.php";
class CustomRcon extends SampRconAPI
{
public function someFunctionName()
{
parent::Call('fc '.'[Forum Chat] '.$_POST['nome'].' dice:'.$_POST['testo']);
}
}
$rcon = new CustomRcon('ip', 7777, 'rcon');
$rcon->someFunctionName();
header("location: form.html");
?>
Using this with a form nothing happen (the script doesn't send rcon command to the server), but when i write in the server "/rcon fc text" the script work... can you help me?
<?
require "SampRconAPI.php";
class CustomRcon extends SampRconAPI
{
public function someFunctionName()
{
parent::Call('fc '.'[Forum Chat] '.$_POST['nome'].' dice:'.$_POST['testo']);
}
}
$rcon = new CustomRcon('ip', 7777, 'rcon');
$rcon->someFunctionName();
header("location: form.html");
?>
Using this with a form nothing happen (the script doesn't send rcon command to the server), but when i write in the server "/rcon fc text" the script work... can you help me?

