Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://www.sitelab.combr.co/backup.rar';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- $fp = fopen('backup.rar', 'w');
- curl_setopt($ch, CURLOPT_FILE, $fp);
- $result = curl_exec($ch);
- curl_close($ch);
- fclose($fp);
- if(!$result){
- echo 'False';
- exit;
- }else{
- echo 'True';
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement