[Please help]dmap and FTP?
#1

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:
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; 
but nothing happend.. players aren't showed..
Any ideas?
Reply


Messages In This Thread
[Please help]dmap and FTP? - by AiVAMAN - 15.01.2010, 16:19
Re: [Please help]dmap and FTP? - by [gmR]BarMaN - 15.01.2010, 16:39
Re: [Please help]dmap and FTP? - by Perker12345 - 15.01.2010, 17:49
Re: [Please help]dmap and FTP? - by AiVAMAN - 15.01.2010, 18:04

Forum Jump:


Users browsing this thread: 2 Guest(s)