New Bits On The Blog

How-to's, Ideas, Thoughts - Mostly on web development.

Helpful CURL usage examples

by Catalin in Curl ¡ 1 min read

Some nice advice and tutorials, well explained about using CURL found on https://gist.github.com/subfuzion/08c5d85437d5d4f00e58

PHP convert CSV to associative arrays

by Catalin in Php ¡ 1 min read

Something handy when importing CSV files: <?php $csv = array_map('str_getcsv', file($file)); array_walk($csv, function(&$a) use ($csv) { $a = array_combine($csv[0], $a); });

Yii - bypassing beforeSave()

by Catalin in Php ¡ 1 min read

If you have defined in your model some “actions” / “mutators” in your, beforeSave method there is a simple way to prevent that these actions to take place in certain cases when you need that. For