Пишу такую штуку:
file_put_contents("ftp://{$login}:{$password}@{$server}/".$path.$value.'/'.$f_key, $f_value);
т.е. получается нормальный, валидный урл
file_put_contents("ftp://{$login}:{$password}@{$server}/".$path.$value.'/'.$f_key, $f_value);
Цитата |
ftp://voldr188:***@s22.iphoster.net/public_html/copy/password.cfg |
Цитата |
Warning: file_put_contents() [function.file-put-contents]: Only 0 of 32 bytes written, possibly out of free disk space in /home/voldr188/public_html/***/index.php on line 832 Warning: file_put_contents() [function.file-put-contents]: Only 0 of 16 bytes written, possibly out of free disk space in /home/voldr188/public_html/***/index.php on line 832 Warning: file_put_contents() [function.file-put-contents]: Only 0 of 726 bytes written, possibly out of free disk space in /home/voldr188/public_html/***/index.php on line 832 Warning: file_put_contents() [function.file-put-contents]: Only 0 of 164 bytes written, possibly out of free disk space in /home/voldr188/public_html/***/index.php on line 832 |
Цитата |
Может есть еще какие способы создать файл по фтп? |
Цитата (Arh @ 8.06.2014 - 01:43) | ||
Ни разу не работал с ftp, но вот первая ссылка с гугла http://www.php.net/manual/ru/book.ftp.php ссори если не в тему) а если в тему, тогда сюда ![]() |
Цитата (VolDroN @ 8.06.2014 - 00:38) |
Может есть еще какие способы создать файл по фтп? Не создавая его и перекидывая, а сразу создав на месте. |