<? ?> <p><input type="file" name="file" size="20"><input type="submit" value="Prześlij" name="B1"><input type="reset" value="Resetuj" name="B2"></p> </form> <?php $file = '$aaa'; $src = imagecreatefromjpeg( $file ); $dst = imagecreatetruecolor( 100, 150 ); imagecopyresized( $dst, $src, 0, 0, 0, 0, 100, 150, $size[ 0 ], $size[ 1 ] ); imagedestroy( $src ); imagedestroy( $dst ); } ?>
Pokazuje:
Cytat
to: C:/Serwer/temp/file-uploads\php143.tmp
Warning: getimagesize($aaa) [function.getimagesize]: failed to open stream: No such file or directory in C:\Serwer\httpd-users\1\11.php on line 16
Warning: imagecreatefromjpeg($aaa) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in C:\Serwer\httpd-users\1\11.php on line 18
Warning: imagecopyresized(): supplied argument is not a valid Image resource in C:\Serwer\httpd-users\1\11.php on line 21
Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\Serwer\httpd-users\1\11.php on line 25
Warning: getimagesize($aaa) [function.getimagesize]: failed to open stream: No such file or directory in C:\Serwer\httpd-users\1\11.php on line 16
Warning: imagecreatefromjpeg($aaa) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in C:\Serwer\httpd-users\1\11.php on line 18
Warning: imagecopyresized(): supplied argument is not a valid Image resource in C:\Serwer\httpd-users\1\11.php on line 21
Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\Serwer\httpd-users\1\11.php on line 25