Archive for the 'PHP' Category

The Benchmark Continues with FastCGI PHP (APC vs XCache vs No Cache)

Menyambung posting terdahulu, saya baru ngeh kalau ada kelemahan yang signifikan di mod_php yaitu parser PHP yang built-in ke dalam process httpd menyebabkan jumlah memory yang dimakan oleh 1 proses httpd bisa sampai 15mb. Dan problem yang disebutkan om steven dimana hosting kebanyakan tidak menjalankan PHP sebagai modul karena alasan security dan privacy. Maka saya coba untuk menjalankan PHP tidak sebagai modul, tapi sebagai aplikasi CGI, lebih tepatnya FastCGI

Read the rest of this entry »

Monday, December 3rd, 2007 | Tags: Articles, FastCGI, PHP, httpd | 7 Comments

APC (Alternate PHP Cache) vs XCache vs No-Cache PHP

Banyak banget artikel yang menyebutkan bahwa caching di PHP sangat membantu kerja server lebih efisien. Saya punya minat besar terhadap teknologi caching ini, secara cara kerjanya yang melakukan cache bytecode skrip PHP yang terkompilasi, sehingga interpreter PHP tidak terus2an mengkompilasi/parsing script setiap ada request masuk. Tetapi ada beberapa yang skeptis dengan berbagai macam alasan semacam makan memory banyak, tidak stabil atau yang lebih konyol: malas untuk menginstall. Hosting blog dan kantor saya adalah salah satunya. Semoga dengan artikel ini, mereka mau menginstallnya.

Read the rest of this entry »

Sunday, December 2nd, 2007 | Tags: Articles, PHP | 3 Comments

Desktop Project

Ingin sekali rasanya ngintip desktop bapak2 dan ibu2 sekalian. Pengen tau OS nya, pengen tau software nya, dan yang lain2 deh. Akhirnya saya bikin project iseng2, sekalian membantu bapak2 dan ibu2 yang sedikit narsis mo pamer desktop yang keren abiss. Desktop Project adalah project kecil2 an untuk pamer screenshot desktop. Dan ngga! ngga ada hadiah dibalik ini. Cuman sharing aja kok. Jadi mohon untuk turut serta dalam project ini. Caranya gampang, Ketik C spasi D, eh cukup capture desktop bapak dan ibu, upload, kasih nama, url dan save.

Thanks all

Thursday, March 29th, 2007 | Tags: Articles, Desktop, PHP | 8 Comments

Text2Number Function

I’ve been working on a PHP function that will parse pronounceable representatiion of number into numeric value. It can be useful for validating sensitive user entries such as payment amount, etc, by entering not only the number, but the pronounceable numbers. For example a text if "sepuluh ribu" can be parsed into 10000.

Give it a try, or download the source.

NOTE
Only works with Indonesian language

UPDATE Friday, March 16 2007
Fixing bug while parsing text like "dua puluh tiga ribu"

UPDATE Tuesday, March 20 2007
Fix some sloppy coding :p

UPDATE Wed, March 21 07
Influenced with Lingua::ID::Words2Num package by Om steven.

UPDATE Wed, March 22 07
Om steven emailed me and send a pretty test-suite for text2number function. I’ve put it on the demo page, nice. Thanks om steven …

Friday, March 16th, 2007 | Tags: Articles, PHP | 9 Comments

RE: Java vs PHP

Here’s my own perspective regarding Pak adiwirasta’s post: "Java vs PHP".

  1. PHP has shorter learning curves than Java
  2. PHP has more support for web-development, since PHP was created for building web application.
  3. Java is intended for general purpose language, so it has more tools and library to support it.
  4. PHP has OOP, but Java do it better.
  5. PHP is lack of threading support.
  6. PHP is more scalable than java, since requirements are cheap, and resource is scattered, while Java, is more corporate minded, with support and stuff.

As a matter of choice, it depends on the subject. If I working on a simple CRUD web-application, I choose PHP. But if my job require concurrency support, I’ll do it in Java.
And if I were asked to choose between PHP or Java for my work? I can’t choose. My company use both.

Thursday, March 15th, 2007 | Tags: Articles, Java, PHP | 4 Comments

the Month of PHP Bugs

the Month of PHP Bugs has begun, Stefan Esser, former of PHP security team and founder of hardened-php project a.k.a suhosin patch begin to open PHP vulnerability one-by-one for a month. For sysadmin, developer and PHP expert, please check. Fortunately that PHP port build for FreeBSD is already default with suhosin patch.

Monday, March 5th, 2007 | Tags: PHP, Weblog | 8 Comments

Powerful PHP Array

PHP array functions indeed very powerful. Here’s couple tricks I usually used on my office projects when dealing with arrays.

Read the rest of this entry »

Tuesday, December 19th, 2006 | Tags: Articles, PHP | 10 Comments