I figured this out on my own, here are some instructions for other like myself looking for a quick answer
You have your form
<?=$newname = date(mds)?>
<form ENCTYPE = "multipart/form-data" action="<?=$PHP_SELF?>" method=post>
<input type=hidden name=newname value="<?=$newname?>">
<input type=file name=userfile>
<input type=submit name=image>
<form>
You have this script that receives the form
//Step 1-This function will upload the file from the form
function do_upload($userfile,$newname)
{
global $new_file;
$new_file = "/home2/usr37/onlinedating-www/freesitesolutions/$newname.jpg";
if (!copy($userfile, $new_file)) echo "failed to copy file $userfile to $new_file\n";
return true;
}
do_upload($userfile, $newname);
// Step 2-This is how the file is passed from where it is located
$in_img = "/home2/usr37/online/$newname.jpg";
// This is the location of where the application is located on your server(imagemagick)
$convert = "/usr/local/bin/convert";
// Step 3-This is the location of where the new file will go after it is resized with new name thumb.jpg
$out_img = '/home2/usr37/online/'.$newname.'thumb.jpg';
// Step 4-This is the imagemagick function
$command = "$convert $in_img -geometry 200x50 $out_img";
//Step 5 this is the PHP function that actually passes the parameters to the application (imagemagick)
system( $command );
so now I have a new file called ****_thumb.jpg in my directory