waduh ud dicoba, malah banyak error:
<?php
$tmpFile = fopen($tmp_name, 'rb');
$pictureData = fread($tmpFile, filesize($tmp_name));
fclose($tmpFile);
$this->image = imagecreatefromstring($pictureData);
$width = imagesx($this->image);
$height = imagesy($this->image);
?>
Oya, 'rb' itu apa y??
Message: fopen(C:\xampp\tmp\php3F.tmp) [function.fopen]: failed to open stream: No such file or directory
Message: filesize() [function.filesize]: stat failed for C:\xampp\tmp\php3F.tmp
Message: fread() expects parameter 1 to be resource, boolean given
Message: fclose() expects parameter 1 to be resource, boolean given
Message: imagecreatefromstring() [function.imagecreatefromstring]: Empty string or invalid image
Message: imagesx() expects parameter 1 to be resource, boolean given
Message: imagesy() expects parameter 1 to be resource, boolean given