Archive | Programming

06 July 2009 ~ 0 Comments

PHP ZipArchive corrupted

If you experienced a corrupted zip file produced by ZipArchive on WampServer you probably have come to the right place. Apparently there has been a discussion on this long time ago but looks like Wampserver still uses the old php_zip.dll. Well, nothing much to write about as it’s quite straightforward. You might want to try [...]

Continue Reading

22 June 2009 ~ 0 Comments

Image Manipulation in PHP

Sometimes there is a need to do simple image manipulation for certain web projects. Take for example a popular site called Flickr. Flickr is an image hosting site that allows online community to store pictures for others to view. And for some cases some uploaders may have big image files and hence a site like [...]

Continue Reading

15 June 2009 ~ 1 Comment

Web Performance Best Practices

Following-up my previous post on how to increase site performance. I received an email from my lead about a Firefox add-on named “Page Speed” that helps analyze a site performance. In brief, Page Speed is an open-source Firefox/Firebug Add-on. Webmasters and web developers can use Page Speed to evaluate the performance of their web pages [...]

Continue Reading

20 May 2009 ~ 0 Comments

Quick and Easy Way to Create Model Class in PHP

Ever experienced a boring and time-consuming task where you have to create a new class for your model object: declaring list of variables and creating the getter and setter functions? “Always” is my answer. Imagine if you have a long list of variables. “Shoot! NOT AGAIN” may be the first exclamation came out from you. [...]

Continue Reading

05 May 2009 ~ 0 Comments

Read Remote Content or File using Zend

Today I was looking around for sample to read a remote file in PHP or even better using Zend. Well there are quite a few good samples that demonstrate the use of native PHP functions: fopen, file_get_contents, or curl but I hardly find examples using Zend. Perhaps it’s just not my luck. But the good [...]

Continue Reading

Tags: , , ,