Archive for the ‘PHP’ Category

How to downgrade to PHP 5.2 using MacPort

phpI just reinstalled my PHP using MacPort and the PHP version is 5.3. I need to downgrade to PHP 5.2 as some of my application still not compatible with PHP 5.3. Had tried many ways but no luck. Luckily, one of my friend experienced this before and he pointed out the right way to downgrade to PHP 5.2 using macport to me. Thanks Paul!

To downgrade to PHP 5.2 using MacPort, follow the steps below:-

Continue reading How to downgrade to PHP 5.2 using MacPort »

Symfony: How to escape hash # character in yaml

Just a quick note for myself to escape # character in yaml – Symfony. When i’m trying to load batch data, some of the record seems not imported successfully especially with hash # character. By default, all the string behind the hash # character is treated as comment.

Here’s the example to escape hash # character:-

Continue reading Symfony: How to escape hash # character in yaml »

How to install apache, php, mysql with macport in Mac OS X

The easiest way to install apache, php and mysql in Mac is thru mac port. You can also install apache, php and mysql by compiling each of the service but it’s too time consuming. If you just wan to install apache, php and mysql for development use, Mac Port install is good enough.

Follow the steps below to install apache, php and mysql in Mac OS X:-

Continue reading How to install apache, php, mysql with macport in Mac OS X »