The name is
Mike Myat Min Han aka 'mmhan'.

I am a developer, mostly do development on Javascript, PHP and CakePHP alongside some development work on C, C++, Obj-C, C# and AS. I also have a thing for Python.

I post here all sorts of crap that I find worthy of sharing: Quotes, Jokes and Notes.

You can check out my blog and follow me on twitter.


Posts tagged php


Text

May 14, 2011
@ 12:41 am
Permalink

11 notes

CakePHP HABTM relation Data Format

The following is the format for $data that CakePHP expect on your Model->saveAll($data) call, using the example of Article and Tags.

array(
    'Article' => array(
        //Article data goes here as usual
    )
    'Tag' => array(
        'Tag' => array(
            1,
            2,
            3
        )
    )
);

Just thought I should note down in case I forget again, like I just did.


Text

May 10, 2011
@ 7:00 pm
Permalink

2 notes

Writing Secure PHP

I was reading this article called Writing Secure PHP, and found a little treasure in that article. 

It’s a hand-out for clients listing out a few basic security details. 

Just noting it down here in case I might need it in time.


Text

May 9, 2011
@ 11:01 pm
Permalink

1 note

Using PHP to upload to S3

So, my boredom continues on resulting in this:

Guess what, with this tutorial on nettuts, it’s pretty easy too!