I’m using the PHPmotion script ([url]http://demo.phpmotiontemplates.com/default/
and I’m attempting to add another file-type for uploading (.pdf), currently it’s just png, jpg and gif.
I’m simply looking for a little guidance on what to add, to this code, to add a pdf file-type.
I’m guessing that this may be the area (from the attached file) that needs some pdf coding:
[CODE]// lets keep same image types
if( $img_file_type[$x] == “image/pjpeg” || $img_file_type[$x] == “image/jpeg” ) {
$new_img = imagecreatefromjpeg($img_file_tmp[$x]);
}
elseif( $img_file_type[$x] == “image/x-png” || $img_file_type[$x] == “image/png” ) {
$new_img = imagecreatefrompng($img_file_tmp[$x]);
}
elseif( $img_file_type[$x] == “image/gif” ) {
$new_img = imagecreatefromgif($img_file_tmp[$x]);
}
list($width, $height) = getimagesize($img_file_tmp[$x]);
Any help will be greatly appreciated.
[canned-message]attachments-removed-during-migration