The answer is YES, PHP can be used to create/process Images, as well as any other format you wish such as XML, DOC, PDF, CSS, INI, and this list is endless.
Look at the GD library for basic image processing... If you want something EXTREME look into ImageMagick, it's a very advanced approach but it is extremely powerful!
Answers & Comments
Verified answer
The answer is YES, PHP can be used to create/process Images, as well as any other format you wish such as XML, DOC, PDF, CSS, INI, and this list is endless.
Look at the GD library for basic image processing... If you want something EXTREME look into ImageMagick, it's a very advanced approach but it is extremely powerful!
And a word of advice, drop CGI.
Study all the functions of image processing in php (GD library).
Search first for "imagecreatefromjpeg()" at http://www.php.net./
You can overlay something on an image. Not sure about a piece of code, mind you! That sounds like virus attempt!