Search the Community
Showing results for tags 'error hndeling'.
-
The server I'm using is WAMP, and it does upload the image every time without error, but I'm recieving this error: Warning: getimagesize(C:\wamp\tmp\php11AC.tmp) [function.getimagesize]: failed to open stream: No such file or directory in C:\........................... on line 15 the code is as follows $name = $_FILES['creature_image']['name']; $temp = $_FILES['creature_image']['tmp_name']; $type = $_FILES['creature_image']['type']; $size = $_FILES['creature_image']['size']; print_r($_FILES); $img_size = getimagesize( $temp ); //size of uploaded image echo "<br>"; print_r($img_size); $width= $img_size[0]; $height= $img_size[1]; the print_r dumps are: Array ( [creature_image] => Array ( [name] => hare-rabbit-notes-and-que-006[1].jpg [type] => image/jpeg [tmp_name] => C:\wamp\tmp\phpF25E.tmp [error] => 0 => 35343 ) ) Array ( [0] => 460 [1] => 276 [2] => 2 [3] => width="460" height="276" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Array ( [creature_image] => Array ( [name] => hare-rabbit-notes-and-que-006[1].jpg [type] => image/jpeg [tmp_name] => C:\wamp\tmp\phpF25E.tmp [error] => 0 => 35343 ) ) Why am I getting the error when data is there?
- 7 replies
-
- getimagesize
- image handeling
-
(and 2 more)
Tagged with: