FTP
| From: | Webmaster Phelios.org | Date: | Thu, 31 Aug 2006 21:38:32 +0000 |
| Subject: | FTP | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7185@lists.php.net to get a copy of this message | ||
Hello Steph
So basically
|<?php
|
function watch_foo($fp, $condition)
{
echo ftell($fp);//update progess bar } | $file = 'index.php'; $fp = fopen($file, 'r'); $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // Initate the upload $ret = ftp_put($conn_id, $file, $fp, FTP_BINARY); | gtk::io_add_watch($fp, Gtk::IO_IN | Gtk::IO_ERR, 'watch_foo'); | fclose($fp); ?> Right? I will try this later on :D Thank you Steph :D |