Parkan
Продвинутый
Дата регистрации:
02.12.2011 21:32:51
Сообщений: 52
<?php
$ftp_host = "88.11.22.33";
$ftp_user = "local";
$ftp_pass = "pass";
$banfile = "/server1/server_log.txt";
$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, "ban.txt", $banfile, FTP_ASCII);
ftp_close($con);
$file = fopen("ban.txt", "r"
$bans = fread($file, filesize("ban.txt");
fclose($file);
echo nl2br($bans);
?>
Но вывод не работает, пишет что
Failed to open file
failed to open stream: No such file or directory in
stat failed for ban.txt in
Подскажите путь для решения проблемы.