Re: php scriptik

From: Trap (Trapasak@volny.cz)
Date: 13. 11. 2003, 05:14 CET


On Wed, 12 Nov 2003 23:10:32 -0500
Trap <Trapasak@volny.cz> wrote:
> $from = "password@ftp.server.cz/karel/index.html">ftp://username:password@ftp.server.cz/karel/index.html";
> $fp = fopen($from, "r");
> $connection = ftp_connect("ftp.server.cz");
> ftp_chdir($connection, "pepa");
> ftp_fput($connection, "index.html", $fp, FTP_ASCII); /* FTP_BINARY pro netextove soubory */
> /* nebo */
> ftp_async_fput($connection, "index.html", $fp, FTP_ASCII); /* nejspis spusti na pozadi */
> 
> Ale vypada to hruzne. Navic pokud nepouzivas nejaky priserny hybridni
> windowsacky ftp server, tak na ty cesty typu 'c:\' zapomen.
> Vubec si nejsem jisty, jestli to funguje. Je to psany z hlavy a php manualu.
> -- 
> S pozdravem
> Trap
> 
Jak tak na to koukam.... Ten zbytek po $connection = ftp_connect("ftp.server.cz"); uz si
urcite domyslis :).
-- 
Trap



This archive was generated by hypermail 2.1.3 : 12. 11. 2003, 23:14 CET