Prettyscripts

Migrating from b2evolution to WordPress

Update: There’s updated post addressing issues with the script. This site was recently migrated from b2evolution to WordPress. I’ve been wanting to do this for a while. There’s nothing wrong with b2evolution. It’s a very powerful CMS / blogging engine, and in my opinion, it’s more powerful than WordPress. When I started this site I had grand…

Continue Reading »

Symfony: Database to fixture data

Note: this post was written when i was working on V1.1 or V1.2. Please scroll down to read updated note before you try anything. While developing a symfony project, it’s usually required to rebuild database and reload data constantly with ‘symfony propel:build-all‘ or ‘symfony propel:build-all-load‘ constantly. When this is run, test data are wiped. The…

Continue Reading »

PHP: Fetching data from remote site

Use cURL() functions: line 2: see next section on $opt line 3: data will be returned if CURLOPT_RETURNTRANSFER set to true line 4: header info, including http status, size etc in array format Setting options Typically the param $opt for curl_setopt_array() (php V5+). for more options, read this. cUrl info Example of data returned from curl_getinfo():