<?php

if ( function_exists"imagecreatefromjpeg" ) )
    echo 
"We have a gd function";
else
    echo 
"Nope, we don't have a gd function";

?>