Hi there I need some hand here...
I'm trying to write a script that call wget....
about like this

$filename="someurl";
$get=`/usr/local/bin/wget -t0 -c $filename`;
while (ereg("saved",$get)) {
        echo "file get";
}


from wget program i get this kind of output

    0K -> .......... .......... .......... .......... .......... [  1%]
   50K -> .......... .......... .......... .......... .......... [  3%]
  100K -> .......... .......... .......... .......... .......... [  5%]
 2850K -> .......... .......... .......... .......... .......... [ 99%]
 2900K ->                                                        [100%]
 
13:27:47 (2.61 MB/s) - `aacrip_f.zip' saved [2969697/2969697]


i need to get the saved word to indecated the download is done

how can i do this...or there is another method to do this...

Thanks in Advance...Yamin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to