I am trying to make script, I want to show the info from the gameserver ip inserted from the URL.
In current config I have:
<?php
define( 'SQ_TIMEOUT', 1 );
define( 'SQ_ENGINE', SourceQuery :: SOURCE );
define( 'SQ_SERVER_ADDR', '123.45.67.890' );
define( 'SQ_SERVER_PORT', 12345);
?>
and i tried like this:
<?php
define( 'SQ_TIMEOUT', 1 );
define( 'SQ_ENGINE', SourceQuery :: SOURCE );
if (isset($_GET['ip'])){
$ip = $_GET['ip'];
}
if (isset($_GET['port'])){
$port = $_GET['port'];
}
define( 'SQ_SERVER_ADDR', $ip );
define( 'SQ_SERVER_PORT', $port );
?>
to be like
http://localhost/".$ip.":".$port.
instead of a fixed ip. inserted on "define"