で要求を使用するためにはどうすればよウェブサイトからウェブからの要求が、動作していない、このコードの呼び出しコマンドのゲームサーバーを呼び出すようにしてみてください。クラスPHP
class SampRconAPI
{
private $command;
public function __construct()
{
$this->command = $_REQUEST["command"];
}
if($this->command == "cmdlist")
{
$aCommands = $this->packetSend('cmdlist');
unset($aCommands[0]);
foreach($aCommands as &$sCommand)
{
$sCommand = trim($sCommand);
}
return $aCommands;
}
マイエラー:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: command
Filename: include/SampRcon.php
Line Number: 7
です。 –
はい、私はそれが働いていない私のウェブサイトからの呼び出し要求です。それはあなたがこのクラスのオブジェクトを作成しているか、エラー –
を示して? –