PHP illiterate completely lost :(

ok here’s the code i’m trying to work. basically i need to create a .jpeg out of the data i get from actionscript 2.0’s bitmapData function. I tried using the code in this post:

but its not running. so i think there’s a problem with my php installation at the server. I’m running php5 on apache 2.0… i’ve installed it to be run as a testing server to check the php scripts so i’m using it as a localhost only.

is there any probable problem i might have with the server? this script uses gd… so is there something more i need to do or install? i removed the ‘;’ in the php.ini file before the extension for php_gd2. so i thought that should make the server support php with gd…

help me please…