07.06.2013, 19:39
you fuck you thanks....
Код:
<?php $ftp_host = "adressftp"; //put the ip / hostname to your ftp here $ftp_user = "ftpname"; //put your login here $ftp_pass = "ftppassword"; //put your password here $banfile = "samp.ban"; $con = ftp_connect($ftp_host) or die("Couldnt connect to your ftp (check your settings!"); ftp_login($con, $ftp_user, $ftp_pass); ftp_get($con, "sampban.txt", $banfile, FTP_ASCII); ftp_close($con); $file = fopen("sampban.txt", "r"); $bans = fread($file, filesize("sampban.txt")); fclose($file); echo nl2br($bans); ?>