Erungansweet’s Blog
Just another WordPress.com weblog

haleluya

1. $fp = fsockopen(“alkitab.otak.info”, ’80’);
2. if ($fp) {
3. fputs ($fp, “GET /bible_random_verse.php HTTP/1.0\r\nHost: alkitab.otak.info\r\n\r\n”);
4. $buffer = ”;
5. while(!feof($fp)) {
6. $buffer .= fgets ($fp, 10240); // get output content
7. }
8. $separated = explode(““, $buffer);
9. $final = explode(“
“, str_replace(“
“, “”, $separated[1]));
10. echo ‘nama ayat = ‘.$final[0];
11. echo ‘
‘;
12. echo ‘isi ayat = ‘.$final[1];
13. } else {
14. echo ‘failed, server maybe under maintenance, please contact administrator’;
15. }

Belum Ada Tanggapan to “haleluya”

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: