Hello, I added few functions in this script, but I have problem... I added this:
$date=date("Y-m-d_H:i:s");
And this is a small piece of full script:
// Ip address and port
$_ip = '192.168.1.109' ; // server ip
$_port = '27015'; // server port
$_password = '123' ; // your rcon password
$s2 = '';
$command = 'say $date'; // the rcon command! Put the command you want here
$requestId = 1;
So I have problems with this line: $command = 'say $data'; , how I can fix it, that in my server will be written data? I had tried this methods:
$command = 'say "echo $date"';
$command = 'echo $date';
$command = 'echo "echo $date"';
$date=date("Y-m-d_H:i:s");
And this is a small piece of full script:
// Ip address and port
$_ip = '192.168.1.109' ; // server ip
$_port = '27015'; // server port
$_password = '123' ; // your rcon password
$s2 = '';
$command = 'say $date'; // the rcon command! Put the command you want here
$requestId = 1;
So I have problems with this line: $command = 'say $data'; , how I can fix it, that in my server will be written data? I had tried this methods:
$command = 'say "echo $date"';
$command = 'echo $date';
$command = 'echo "echo $date"';