Selasa, 10 September 2013

PHP Indonesia - Facebook: gan, cara download file rar pke curl gmana ? ane u...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Start taking a college level music theory class today.

This beginner class is now accessible to aspiring musicians of all ages. Learn all of the basic concepts in an easy to follow manner.
From our sponsors
gan, cara download file rar pke curl gmana ? ane u...
Sep 10th 2013, 13:18, by C Rieqy IfndefXor PetangatusteluForbidden

C Rieqy IfndefXor PetangatusteluForbidden 1:18pm Sep 10
gan, cara download file rar pke curl gmana ?
ane udah nyoba kya gini
<?php
function curl($url, $binary=false){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
if($binary==true){
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
}
$exec = curl_exec($ch);
curl_close($ch);
return $exec;
}
function save($file, $data){
if(file_exists($file)) unlink($file);
$fp = fopen($file, "x");
fwrite($fp, $data);
fclose($fp);
}
function download(){
$file = curl("http://site.com/file.rar", true);
save("file.rar", $file);
}
download();
?>

file rar nya sih berhasil didownload, tpi pas dibuka error kya gini
"The archive is either in unknown format or damaged"

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar