下面是我的上传照片程序:
<?php
$imgfile='peng.jpg';
$x=0.5;
list($width,$height)=getimagesize($imgfile);
$newwidth=$width*$x;
$newheight=$height*$x;
$thumb=imagecreatetruecolor($newwidth,$newheight);
$source=imagecreatefromjpeg($imgfile);
imagecopyresized($thumb,$source,0,0,0,0,$newwidth,$newheight,$width,$height);
header('content-type:image/jpeg');
imagejpeg($thumb);
?>显示错误:
Warning: getimagesize(peng.jpg) [function.getimagesize]: failed to open stream: No such file or directory in D:\www\imagebiger.php on line 4Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in D:\www\imagebiger.php on line 7Warning: imagecreatefromjpeg(peng.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in D:\www\imagebiger.php on line 8Warning: imagecopyresized(): supplied argument is not a valid Image resource in D:\www\imagebiger.php on line 9Warning: imagejpeg(): supplied argument is not a valid Image resource in D:\www\imagebiger.php on line 11我把"peng.jpg"这张照片的位置放在:站点管理
请问上面是什么原因赵成的错误?是我的照片位置放的地方不正确吗?请问照片应该放在什么地方?