Archive for the ‘PHP’ Category

Zend Certification - Self Test

Friday, June 22nd, 2007

Iseng-iseng nyobain Zend PHP 5 Certification - Self Test. :D

Katanya si Zend :

The level of difficulty and subject matters are on par with those you will encounter throughout the actual exam.

Hmm, setara dengan soal ujian aslinya?
And the Result!

You have completed the Self Test!
Your score is 5 out of 8.
It looks like you are ready to take the Zend PHP Certification exam.
Schedule your test now at one of over 3,500 test centers worldwide.

Dan kalau soal di self-test nya memang setara dengan soal di ujian asli, harusnya saya bisa menjawab 26 - 27 soal dengan benar ( (5/8) * 70 soal ) . Dengan catatan, saya diperbolehkan membaca manual PHP. haha.

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.

A = N , A = Z

Friday, December 22nd, 2006

Sewaktu masih SMU, saya mengikuti ekskul Pramuka. Kegiatan yang paling saya senangi adalah camping, dan yang paling tidak saya senangi -> Menerjemahkan Sandi! (tapi kok sekarang malah seneng yah.. ga tau juga ah).

Sandi paling sederhana yang pernah diajari oleh kakak2 senior dulu adalah sandi A = N dan A = Z. Gampangnya begini:
A = N :

CODE:
  1. A B C D E F G H I J K L M
  2. N O P Q R S T U V W X Y Z

setiap huruf A akan diganti dengan N, B dengan O, dst .Contoh : saya -> fnln

A = Z :

CODE:
  1. A B C D E F G H I J K L M
  2. Z Y X W V U T S R Q P O N

setiap huruf A akan diganti dengan Z, B dengan Y, dst. Contoh : saya -> hzbz

So, here comes the code.. (walaupun masih 'kotor') :D (more...)

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!