Langkah - Langkah :
- Buka Notepad Atau Php Designer Dan Copas serta Simpan Script Berikut Dengan Nama curl.php jangan lupa jika Kamu menggunakan Notepad Pilih Type All file Ketika Menyimpan :
<?php
function bacaHTML($url){
// inisialisasi CURL
$data = curl_init();
// setting CURL
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $url);
// menjalankan CURL untuk membaca isi file
$hasil = curl_exec($data);
curl_close($data);
return $hasil;
}
$isine = bacaHTML('Isi dengan path file rantext.php nya'); //
$bersih= explode('<b>', $isine);
$bersih= str_replace("document.write(", "", $bersih);
$bersih= str_replace("<i>", "", $bersih);
$bersih= str_replace("<br />", "", $bersih);
$bersih= str_replace(");", "", $bersih);
echo "$bersih[0]";
?>
2. Copas Script Berikut Dan Simpan Dengan Nama rantext.php :
<?php
$textfile ="isi.txt";
$items = file("$textfile");
$item = rand(0, sizeof($items)-1);
echo $items[$item];
?>
3. Status.php
<?php
$access_token = "Isi dengan acces token app Anda"; //
$url = "https://graph.facebook.com/me/feed?method=POST";
$linx = "Isi dengan path file curl.php nya";
$status = file_get_contents($linx);
$ch = curl_init();
$attachment = array( 'access_token' => $access_token,
'message' => $status,
);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
$result= curl_exec($ch);
curl_close ($ch);
?>
4. Rantext.txt
<?php$textfile ="isi.txt";$items = file("$textfile");$item = rand(0, sizeof($items)-1);echo $items[$item];?>
5. isi.txt
Ilmu pengetahuan tanpa agama adalah pincang. [ Einstein ]
Hiduplah seperti pohon kayu yang lebat buahnya; hidup di tepi jalan dan dilempari orang dengan batu, tetapi dibalas dengan buah.
6. Upload Semua Script Di Atas Ke Hosting
7. Tinggal Setting Cronjob Nya Biar Update Status Setiap Waktu
Note :
isi.txt Di Pisahkan Berdasarkan Line Status
<?php
function bacaHTML($url){
// inisialisasi CURL
$data = curl_init();
// setting CURL
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $url);
// menjalankan CURL untuk membaca isi file
$hasil = curl_exec($data);
curl_close($data);
return $hasil;
}
$isine = bacaHTML('Isi dengan path file rantext.php nya'); //
$bersih= explode('<b>', $isine);
$bersih= str_replace("document.write(", "", $bersih);
$bersih= str_replace("<i>", "", $bersih);
$bersih= str_replace("<br />", "", $bersih);
$bersih= str_replace(");", "", $bersih);
echo "$bersih[0]";
?>
<?php
$textfile ="isi.txt";
$items = file("$textfile");
$item = rand(0, sizeof($items)-1);
echo $items[$item];
?>
Ilmu pengetahuan tanpa agama adalah pincang. [ Einstein ]
Hiduplah seperti pohon kayu yang lebat buahnya; hidup di tepi jalan dan dilempari orang dengan batu, tetapi dibalas dengan buah.
Update Status Otomatis Tanpa Online
Reviewed by Unknown
on
18.17
Rating:

Tidak ada komentar: