Archive for September, 2007

Lemes..

Sunday, September 30th, 2007

Puasa disiang hari dan insomnia lumayan akut ternyata memang ngga baik untuk tubuh saya.. :(

atau cuma karena saya belum menguasai ilmu ikhlas untuk “menjalankan” keduanya? :D

Flickr Tag Cloud

Tuesday, September 11th, 2007

Ini plugin wordpress bikinannya om Josh. Nama lengkap pluginnya Flickr Tag Cloud Widget. Kalau mau download, langsung ke link diatas aja ya. :)

Flickr Tag Cloud Widget, punya masalah yang sama dengan beberapa plugin wordpress lainnya, terkait dengan fopen wrappers.. So, here's the unofficial fix for Flickr Tag Cloud Widget :

Search this text in flickr-tagcloud-widget.php : ( line 151 and 212, i guess ).

PHP:
  1. $rsp = file_get_contents($url);

And replace it with this :

PHP:
  1. $ch = curl_init();
  2. curl_setopt($ch,CURLOPT_URL, $url);
  3. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  4. $rsp = curl_exec($ch);
  5. curl_close($ch);

overall solution for this plugin :

PHP:
  1. if(ini_get('allow_url_fopen') == 1 || ini_get('allow_url_fopen') == "on"){
  2.    $rsp = file_get_contents($url);
  3. } else {
  4.    $ch = curl_init();
  5.    curl_setopt($ch,CURLOPT_URL, $url);
  6.    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  7.    $rsp = curl_exec($ch);
  8.    curl_close($ch);
  9. }

CMIIW, and good luck!

cURL everyone..?

Tuesday, September 11th, 2007

php.net bilang :

This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers.

Security! alasan yang cukup masuk akan bagi beberapa penyedia layanan webhosting untuk men-disable fopen wrappers.

Alternatifnya ? Gunakan cURL .. Hihi.

Welcome, Athena!

Monday, September 10th, 2007

Hope you can serve us better in the next two years.. :)

Yet Another Review

Wednesday, September 5th, 2007

Sudah hampir 1 minggu blog ini berada di 'rumah' yang baru. Yep, another free hosting :D . Pada postingan kali ini, saya akan mencoba me-review dari sisi saya sebagai pengguna. Dengan keterbatasan kemampuan yang saya miliki, tentu review pendek ini akan menjadi sangat subjektif.

(more...)