How can you transform a ps2 into a ps3?

Honestly, you can't. They are 2 different systems made a few years before each other, so they have very different technological uses.