Archive for the ‘Web’ Category

Curl, ccTLD .id

Wednesday, February 21st, 2007

Last Night, My script didn't work well while contacting register.net.id's whois port.

PORT STATE SERVICE
43/tcp closed whois

Yeah, it's closed. So, i write a code to check domain availability through the-must-opened port ( http!!) Using PHP + libcurl. :D

PHP:
  1. <?
  2. $available = "Domain Belum Terdaftar";
  3. $navigation = 'domain'; //form jack!
  4. $keyword = 'amikom'; //nama domain
  5. $domain_category  = 'ac.id'; // ccTLD
  6. $curlPost = 'navigation='  . urlencode($navigation) . '&keyword=' . urlencode($keyword) . '&domain_category=' . urlencode($domain_category) . '&go=Check';
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_URL, 'http://register.net.id/whois');
  9. curl_setopt($ch, CURLOPT_HEADER, 1);
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11. curl_setopt($ch, CURLOPT_POST, 1);
  12. curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);
  13. $data = curl_exec($ch);
  14. $cek = eregi($available,$data);
  15. if($cek == true){
  16.     echo "Domain masih available";
  17. } else {
  18.     echo "Domain tidak available";
  19. }
  20. curl_close($ch);
  21. ?>

Thanks to Sandal for nmap information.

Mootools

Friday, December 1st, 2006

mootools is a very compact, modular, Object-Oriented javascript framework.

Pertama kali kenal mootools dari Derek lewat video tutorialnya untuk CodeIgniter.

Oh iya, mootools juga pake code igniter ternyata. Folder system masih belum direname. :D

Dan saya juga baru tahu kalau Joomlaos juga dibuat pake mootools. What a beautiful work!

Flickr or Picasaweb ?

Saturday, October 14th, 2006
  • Space or Bandwith Limit ? :
  • Confused? So do i. :D . Picasaweb comes with 250MB of free storage, while Flickr comes with 20MB bandwith limit each month. Which one you choose ?

  • Tagging ?
  • I found no tagging feature in Picasaweb which Flickr does.

  • Simplicity ?
  • Whoops.. Picasaweb is soo damn simple. :D

  • Groups and Sharing ?
  • Still can't find it in Picasaweb. :(

The coolest point in Picasaweb is the integration with Picasa. And that's why is choose Picasaweb. :D :D

.inc

Saturday, October 7th, 2006

Masih make .inc?? Pikirin lagi deh..

[old] : WP bug

Friday, August 4th, 2006

Bug ini sebenernya dah lama banget. Dari WP < 1.5 dulu..

Kalau ga bisa ngakses php.ini (shared hosting biasanya), edit aja lewat .htaccess. Tambahin baris:

php_flag log_errors on
php_flag display_errors off

Tapi sangat tidak disarankan untuk para developer :D