Quote (eagl3s1ght @ Aug 7 2012 01:23am)
getimagesize() works fine for me.
http://codepad.viper-7.com/B4MiZsCode
<?php
$size = getimagesize('http://localhostr.com/files/8oEwcrO/error.jpg');
print_r($size);
?>
Code
Array ( [0] => 200 [1] => 130 [2] => 2 [3] => width="200" height="130" [bits] => 8 [channels] => 3 [mime] => image/jpeg )
You probably couldn't have chosen a more sketchy host bro. How about localhostr.com next time?
http://1.imgland.net/Sqg3GzV.png
lol sry i dont know file hostin sites.. i just did a quick google search and that one came up ;o
hmmmm very weird... its not workign for me on my code..
this is the code i have:
<?php
if (($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"] . "<br .>";
list($width, $height, $type, $attr) = getimagesize($_FILES["file"]["tmp_name"]);
echo "Image width " .$width;
echo "<BR>";
echo "Image height " .$height;
echo "<BR>";
echo "Attribute " .$attr;
}
}
else
{
echo "Invalid file";
}
?>
i uploaded my code on some free hosting i found, here is the address:
http://jpgcw.site11.com/i test'd it with other .jpg and it works fine, but that error one doesnt work
i tried entering in ur url for the pic and it worked, maybe something weird is going on with the uploading script?
but it shows that the upload is successful
This post was edited by KyoDivine on Aug 7 2012 07:05am