From I want to create
Is this possible with php?
Set Perspective of an Image Using PHP GD:
http://www.jqueryit.com/2010/03/set-perspective-of-image-using-php-gd.html
If you have Imagemagick:
You can, with imagemagick. Here is the ImageMagick documentation for that kind of processing.
You could "fake" the effect by putting a white mask with transparent center corresponding to the desired rotation over the image.