[PHP-DB] Re: Image upload get file dimensions

2003-06-24 Thread Cristian MARIN
This was the first post and then followed by the second. Sorry about the
incovenience.

"This question is more or less a db question. Whatever.

Use imagesx() for the with and imagesy() for height. Please refer to the
manual:
http://www.php.net/manual/en/function.imagesx.php
http://www.php.net/manual/en/function.imagesy.php

"

-- 
-
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel: +4021 312.53.12
Tel/Fax:  +4021 312.51.91
[EMAIL PROTECTED]
"Chris Payne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi there everyone,

In short, I use the following to upload an image to the server:

$max_size = 40;
if (is_uploaded_file($userfile)) {

all works great, but what I want to do is store the file details in my MySQL
DB, how can I easily find out the image width and height etc  from the
uploaded image so that I can store this information in the DB?

Thanks for your help everyone :-)

Chris



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: Image upload get file dimensions

2003-06-24 Thread Cristian MARIN
Or use getimagesize()

-- 
-
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel: +4021 312.53.12
Tel/Fax:  +4021 312.51.91
[EMAIL PROTECTED]
"Chris Payne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi there everyone,

In short, I use the following to upload an image to the server:

$max_size = 40;
if (is_uploaded_file($userfile)) {

all works great, but what I want to do is store the file details in my MySQL
DB, how can I easily find out the image width and height etc  from the
uploaded image so that I can store this information in the DB?

Thanks for your help everyone :-)

Chris



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php