19 October 2011

Symfony: Setup PHP intl extension in WAMP

When using WAMP, in order to get the PHP intl extension to play nicely with Symfony, other than enabling the PHP intl extension, you would need to copy all icu*.dll from php/php5 to apache/bin and restart WAMP.

24 March 2011

IIS and FLV and MIME

In order for IIS to support .flv in a particular website, you'll need to add an entry to MIME Types.

Right click Website, Properties > HTTP Headers > MIME Types

Extension: .flv
MIME Type: video/x-flv

16 March 2011

Joining MP3s

Here's a command to join MP3s in a directory into one big MP3.

copy /b *.mp3 c:\new.mp3

24 February 2011

Create yii Skeleton App

Linux
./yiic webapp /wwwroot/name_of_skeleton_app

OR

path/to/php /wwwroot/yii/framework/yiic.php webapp /wwwroot/name_of_skeleton_app

Windows

php yiic.php webapp name_of_skeleton_app