Parfum Shop's Blog

You come when you need, away when you get

Author Archive

Ban Terbaik di Indonesia GT Radial

By • Nov 30th, 2011 • Category: General

Pengakuan Atas Eksistensi dan Kualitas Jangan heran jika ban produksi PT Gajah Tunggal Tbk memperoleh banyak penghargaan sebagai ban terbaik di Indonesia maupun internasional. Ini merupakan bukti bahwa kualitas ban Gajah Tunggal mampu bersaing dan melampaui merek lain, bahkan dengan merek asing sekalipun. Wajar pula mengingat dalam perjalanan waktu yang panjang (60 tahun-red), perusahaan ini [...]



Check if a URL exists and return code not 404(not found) with cURL PHP

By • Mar 24th, 2010 • Category: Web Programming

Here is a simple function that will do just that, determine if a website exists using PHP and cURL. It’s check http code, if http code is 404 (Not Found) it will return false. function urlExists($url=NULL) { if($url == NULL) return false; $ch = curl_init($url); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data [...]



Array remove empty entries PHP

By • Mar 18th, 2010 • Category: Web Programming

Bellow PHP code for remove an empty value of array: function array_remove_empty($arr){ $narr = array(); while(list($key, $val) = each($arr)){ if (is_array($val)){ $val = array_remove_empty($val); // does the result array contain anything? if (count($val)!=0){ // yes $narr[$key] = $val; } } else { if (trim($val) != “”){ $narr[$key] = $val; } } } unset($arr); return $narr; [...]



LINUX RECOVER PASSWORD ROOT ONLY

By • Feb 15th, 2010 • Category: Linux

RECOVERY PASSWORD ON LINUX (GRUB ONLY) lupa password box linux kamu



Clear login log or lastlog linux and unix.

By • Feb 15th, 2010 • Category: Hacking

Universal utmp, wtmp, and lastlog editor. Actually removes, doesn’t leave holes… /*Compile “cc -o remove remove.c -DGENERIC” and run as root. Use -DAIX instead of -DGENERIC for an AIX machine. Use -DSCO instead of -DGENERIC for a SCO machine. */ #include #include #include #include #include #ifndef AIX #include #else #include #endif #include #ifdef AIX #define [...]



Detect Mobile Browser With PHP and JSP.

By • Feb 10th, 2010 • Category: Web Programming

Below listing code for detect browser is mobile or PC: For PHP: