Archive for the 'PHP' Category

Symfony: Control Model->save() function to perform INSERT or UPDATE

Friday, April 4th, 2008

In Symfony Framework, Model->save() function is clever enough to determine to use INSERT or UPDATE for the query. But i’ve tried many ways to perform an UPDATE for my record but failed. It keep INSERT new record. Finally i found the solution to control the Model->save() function to perform INSERT or UPDATE.
Just a simple example:-
Assume [...]

PHP: How to convert ISO character (HTMLEntities) to UTF-8?

Thursday, June 28th, 2007

I’m facing problem in how to convert string from ISO to UTF8 previously. Due to the server configuration problem, all the UTF-8 char has been convereted into ISO (HTMLEntities) before it insert into db and those ISO character (HTMLEntities) break while showing in XML document. Now i found the solution to convert ISO character into [...]

Install eAccelerator to Optimize PHP performance

Friday, March 23rd, 2007

Server load increase? looking for ways to optimize your php performance? if you have php optimization problem, you should try PHP eAccelerator. PHP eAccelerator is a free open source PHP accelerator, optimizer and dynamic content cache module that specially build to optimize php performance. According to php eaccelerator official site, php accelerator able to speed [...]