SA-MP Forums Archive
[Please help]dmap and FTP? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Please help]dmap and FTP? (/showthread.php?tid=121128)



[Please help]dmap and FTP? - AiVAMAN - 15.01.2010

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?



Re: [Please help]dmap and FTP? - [gmR]BarMaN - 15.01.2010

i want to know this too!
some help!!!!!!


Re: [Please help]dmap and FTP? - Perker12345 - 15.01.2010

I'm not sure but isn't it just like this
"scriptfiles/dmap_feed.json";
That works for me, I am sorry if i misunderstood the problem


Re: [Please help]dmap and FTP? - AiVAMAN - 15.01.2010

You mean I don't need to write home dir?