Dustin Krysak wrote:
Hi there - I was wondering if there was a way to get PHP to get the
dimensions of an image? I want to be able to have PHP dynamically write
the image size (of the IMG tag) so that my pages validate when
displaying a dynamic image.
Thanks in advance!
d
It's all in the manual
-Original Message-
From: Reinhart Viane [mailto:[EMAIL PROTECTED]
Sent: zaterdag 27 november 2004 23:24
To: 'Dustin Krysak'
Subject: RE: [PHP] get image dimensions
$dimensions=getimagesize($image_url);
$dimensions[0]=width
$dimensions[1]=height
Hope this helps
-Origin
Hi there - I was wondering if there was a way to get PHP to get the
dimensions of an image? I want to be able to have PHP dynamically write
the image size (of the IMG tag) so that my pages validate when
displaying a dynamic image.
Thanks in advance!
d
--
PHP General Mailing List (http://www.php
3 matches
Mail list logo