客戶端上載的頁面:
-------------------- upload.htm ------------------ ---
method="post" action="upload.php">
請選擇或輸入上傳檔名:
---------- ----------- upload.php -------------------
if(empty($upfile)){
print ("No file was transfered!n無檔案上傳!");
exit;
}
$image_path=$upfile;
@$image_info=getget)($imget); ]==2)
{@$image2=imagecreatefromjpeg($image_path);
}
else if($image_info[2]==1){
else if($image_info[2]==1){
else if($image_info[2]==1){
}
else
if(empty($image2))
$image2_x=imagesx($image2);
$image2_y=imagesy($image2);
$image2_y=imagesy($image2);
$x=150;
$y=0;
}
else if($image2_x>$image2_y){
$x=15005000);
}
else{
$y=150;
$x=intval(150*$image2_x/$image2_y);
.
imagecopyresized ($image1,$image2,0,0,0,0,$x,$y,$image2_x,$image2_y);
imagegif($image1,"new.gif");
?>