Pro vytvareni adresaru na webu pouzivam nasl. script: <?php $connection = ftp_connect('server.com'); $username = 'user'; $pass = 'heslo'; $login_result = ftp_login($connection,$username,$pass); // check to make sure you're connected: if ((!($login_result)) or (!($connection))) { // error....do something } else { // we're good to go -- the connection was made ftp_chdir($connection,'//'); ftp_mkdir($connection,'pepa'); ftp_mkdir($connection,'karel'); ftp_close($connection); } ?> Funguje prefektne - vytvori adresare Pepa a Karel. Ted bych potreboval jeste, aby se z c:\pepa\index.html zkopiroval do Pepy na FTP a to same i u Karla (c:\Karel\index.html) Zkousel jsem do scriptu pridat jeste: $source = 'c:/pepa/index.html'; $dest = 'ftp.server.com/pepa'; //see if (is_dir("$source/$entry")&&$dest!=="$source/$entry") copys($source,$dest); function copys($source,$dest) ale neuspesne :( Poradite jak na to (zkousim to uz asi 3 dny a porad na to nemuzu prijit :) ) Diky moc
This archive was generated by hypermail 2.1.3 : 12. 11. 2003, 18:00 CET