Ca-Phun Ung

Freelance web developer and Internet consultant at Yelotofu.
Categories
- Accessibility (6)
- Browser Testing (5)
- CSS (11)
- Django (3)
- Events (5)
- Hong Kong (3)
- JavaScript (20)
- jQuery (2)
- Labs (2)
- Optimisation (2)
- PHP (8)
- Ramblings (12)
- Reviews (6)
- Ruby on Rails (4)
- Tools (5)
- Web Standards (10)
- WiFi (3)
- WordPress (1)
Tip: Obtaining Request Parameters in Zend_View
I found it virtually impossible to obtain GET or POST request parameters in Zend_View without resorting to accessing the $_GET or $_POST variables. Directly accessing these variables within Zend_View is bad practice so it’s been suppressed on purpose to keep processing where it should be – within the Controller. However it is possible to get [...]
Banana Apple Orange?
Which do you prefer? maybe all? maybe none? It’s totally up to you and down to individual preference. The same could be said for Web Frameworks. This choice has come at a time when I am deciding on a Web Framework to use for a number of projects. So this post should hopefully put some [...]
Clean URLs with CakePHP and IIS
CakePHP works on IIS out of the box but it’s a pity the default setting is on querystring URLs. To serve clean URLs in CakePHP simply uncomment the following line in /app/config/core.php: define (’BASE_URL’, env(’SCRIPT_NAME’)); By doing this CakePHP will direct each page request to the base script (by default thats index.php) and take charge [...]
Beginning CakePHP
I’m finally taking the plunge into CakePHP. The Rails-like Rapid Development architecture has allured me for some time. However, on starting I immediately came across trivial questions such as how do I create static pages? how do I create an Admin area? how do I send HTML emails? etc etc… I stumbled upon the 21 [...]
Rails-like PHP Framework
There are two Rails-like PHP frameworks gaining momentum and amounting a zealous following, both of which have recently gone stable.Symfony and CakePHP, written in pure PHP follow the same MVC (Model, View, Constroller) architecture found on Rails. They’ve gone at lengths to make it easy and intuitive to use and provide scaffolding tools, buit-in AJAX [...]
Quick tip: upload_tmp_dir on Win2k
If you are running PHP as a module on a Win2k server remember to set the upload_tmp_dir in your php.ini to a folder that allows the Anonymous Internet User read/write permissions. Otherwise you’d end up with 0.0 byte files when performing PHP uploads…By default the upload_tmp_dir is set to %windir%\temp if no value is given. [...]
Xaraya xlink
Xaraya has a wonderful module called “xlink” which enables cross linking to module items. xlink makes it possible to specify an alternative URL for any module item just by hooking it to that module. What this means for SEO and migration in general is you can now keep your old URLs that bring traffic and [...]
Xaraya import: Optimization problem
I recently created import scripts to migrate a forum containing 25,000 users, 50,000 topics & 650,000 posts to Xaraya. The scripts are based on import_phpBB by mikespub, which comes with the core, found in /tools/import/. After completing modifications to the scripts I did an import but was hit back hard by the speed it took [...]
