Я пытался так:
$whitelistadd = fopen("ftp://xxx:xxx@rosoppozitsia.ru/domains/rosoppozitsia.ru/whitelist.txt" ;, "w+");
fwrite($whitelistadd, $nick);
fwrite($whitelistadd, "\r\n");
fclose($whitelistadd); } }
Но получаю warning:
$whitelistadd = fopen("ftp://xxx:xxx@rosoppozitsia.ru/domains/rosoppozitsia.ru/whitelist.txt" ;, "w+");
fwrite($whitelistadd, $nick);
fwrite($whitelistadd, "\r\n");
fclose($whitelistadd); } }
Цитата |
Warning: fopen(ftp://...@rosoppozitsia.ru/domains/rosoppozitsia.ru/whitelist.txt) [function.fopen]: failed to open stream: FTP does not support simultaneous read/write connections in W:\html\lfgl\www\minecraft\join_obr.php on line 22 Warning: fwrite(): supplied argument is not a valid stream resource in W:\html\lfgl\www\minecraft\join_obr.php on line 23 Warning: fwrite(): supplied argument is not a valid stream resource in W:\html\lfgl\www\minecraft\join_obr.php on line 24 Warning: fclose(): supplied argument is not a valid stream resource in W:\html\lfgl\www\minecraft\join_obr.php on line 25 |
Цитата (vital @ 10.04.2012 - 17:14) |
http://php.net/manual/en/book.ftp.php |