Image to String
Script Description
This simple function outputs an image generated using GD library to PHP string (standard image functions from GD library can output images only to the browser or a file). The image then can be stored in $_SESSION variable or MySQL database.