This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Senin, 10 Januari 2011

PHP fsockopen failed when accessing through IPV6



When i try creating xml-rpc based application using php. It show that it cannot get 200 status.
Then i try ping localhost through command prompt. It's a suprise then, the ping result is IPV6 which is ::1: for localhost.

I try to nonactivate IPV6 localhost in window/system32/drivers/etc/hosts and remark ipv6 address. Then I try to ping again, it result 127.0.0.1 then amazingly, my xml-rpc application is working.

My Computer is Vista, i think it just a matter turn off ipv6 so ping will always return ipv4 address.

i am trying xml-rpc using : codeigniter xml-rpc,incutio

Senin, 20 Desember 2010

PHP CLI : PHPRC


When i look at to phpinfo() in cli mode. it's seems php automatically read such php.ini from defined location. and when i look to environment variables there is such variable called PHPRC, which values is directory/folder of where php.ini reside.


Jumat, 17 Desember 2010

javascript Cache in firefox


Sometimes firefox wan't let cache even script is updated. to release it we can clear all cache. So, if you feel you have update the script but nothing happens in firefox. It's time to see your firebug->net->script and watch your header



Kamis, 02 Desember 2010

Contoh Konfigurasi Pagination CodeIgniter

//contoh url index.php/folder/control/function/offset
//maka urutan offset adalah yang ke-4

$offset = $this->uri->segment(4);

$config['base_url'] = site_url() . '/admin/materi/index/';

$config['total_rows'] = $this->mmateri->get_count();

$config['per_page'] = 5;

$config['uri_segment'] = 4; //penting


 

$this->pagination->initialize($config);
$paginator=$this->pagination->create_links();

        

$data["offset"] = $offset;
$data['result'] = $this->mmateri->get_paged($config['per_page'],$offset);
$data['total_page'] = $paginator;

$this->load->view('admin/materi', $data);

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More