champ_rock said:thanks i think this is exactly what i was looking for..
one more thing can u please tell me some method by which i can upload that file to my server directly instead of manually downloading the file to my computer and then using a ftp server to upload it... ?
wget -r http://mu.wordpress.org/latest.tar.gz
<?php
$tar = file_get_contents('http://mu.wordpress.org/latest.tar.gz');
$handle = fopen("latest.tar.gz","a");
fwrite($handle,$tar);
fclose($handle);
?>

