Im trying to follow the tutorial on Sitepoint -
Build An Automated PHP Gallery System In Minutes

and have so far got to page 4/5 where I am trying to edit the upload.php page but it tells me
Fatal error: Call to undefined function ImageCreateFromJPEG() in C:\wamp\www\upload.php on line 73
on line 73 it says
PHP Code:
$source_handle $function_to_read($images_dir '/' $filename); 
I am testing the files on localhost using phpMyAdmin and the WAMP server

Do I need to be testing the files on my website host? As they have GD Library bundled with it? I tried to transfer the files over here but it then doesnt connect to the database as I am not sure what to replace the localhost with??

Can Anyone help??
Thanks