getimagesize (Bug? or error in PhP?)
| From: | bram | Date: | Wed, 23 May 2001 09:19:45 +0000 |
| Subject: | getimagesize (Bug? or error in PhP?) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54009@lists.php.net to get a copy of this message | ||
Hi,
I want to have the width and the height of an image, if I place the image on
my server then it works buth if i want to load the image from another server
then I have errors, is this a bug in PHP, or is there another solution.
Because in the php.net manual they use Getimagesize() too for loading an
image from another site
(http://www.php.net/manual/en/function.getimagesize.php)
Please post a message if you know what I must do, thanks
bram
<html>
<head>
<title>GetImageSize</title>
</head>
<body>
<?
$url="http://toontime.dk/cli/pt09.jpg";
$imagehw = GetImageSize("$url");
$imagewidth = $imagehw[0];
$imageheight = $imagehw[1];
print"$imagewidth ";
print"$imageheight ";
?>
</body>
</html>