using ereg
| From: | Yamin Prabudy | Date: | Mon, 02 Jul 2001 06:28:43 +0000 |
| Subject: | using ereg | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55793@lists.php.net to get a copy of this message | ||
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