15.01.2010, 16:19
Hello. I am using dmap to create a live map, but I am stuck at config.inc.php line
$config['default script'] = 'dir to dmap_feed.djson';
I am using host, so I trieds to connect to FTP and get that file, but nothing happend. I used this code:
but nothing happend.. players aren't showed..
Any ideas?
$config['default script'] = 'dir to dmap_feed.djson';
I am using host, so I trieds to connect to FTP and get that file, but nothing happend. I used this code:
PHP код:
global $config;
$ftp_host = "ftp hostname";
$ftp_user = "ftp username;
$ftp_pass = "ftp password";
$mapfile = "Augustinas/scriptfiles/dmap_feed.json"; //Where the file is in ftp
$con = ftp_connect($ftp_host) or die ("Couldnt connect to your ftp (check your settings!");
ftp_login($con, $ftp_user, $ftp_pass);
$config['api key']='my api key';
$config['default script'] = '$mapfile';
$config['allow external'] = false;

Any ideas?