Re: [PHP] getimagesize()

2006-04-07 Thread John Nichel
Ed Curtis wrote: Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to do with it. That

Re: [PHP] getimagesize()

2006-04-07 Thread tedd
At 9:14 AM -0500 4/7/06, Ed Curtis wrote: Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to

Re: [PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread Burhan Khalid
timothy johnson wrote: $id = $_GET['id']; $query = SELECT * FROM myPhotos WHERE photoId='$id'; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im);

Re: [PHP] getimagesize() to find type?

2004-01-16 Thread Matt Matijevich
[snip] (1) How would I do that (use getimagesize() instead to find type)? [/snip] http://php.net/getimagesize [snip] (2) Stupid question: how do I say if ($_FILES['imagefile']['type'] != image/pjpeg) and add image/jpeg to that constraint? [/snip] there are many ways, I will show you an

Re: [PHP] getimagesize() MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Tom Rogers
Hi, Sunday, December 7, 2003, 6:38:13 PM, you wrote: G I'm using a MySQL database to store images as BLOBs. I know how to G handle all the MySQL stuff, it's easy, and really makes keeping track G of files nice an clean. No permissions, no risk of getting things out G of sync, finding stuff is

Re: [PHP] @getimagesize

2003-06-04 Thread Diana Castillo
THANKS FOR all your help, I found out it was a custom error handling program that we had that was putting out that error. John Coggeshall [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you using PHP 4.3.2? Try upgrading :) John On Tue, 2003-06-03 at 05:23, Diana Castillo

RE: [PHP] @getimagesize

2003-06-03 Thread electroteque
try an fopen to check if the file is there first ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:24 PM To: [EMAIL PROTECTED] Subject: [PHP] @getimagesize I use @getimagesize to resize pictures that I get from a url which comes from a

Re: [PHP] @getimagesize

2003-06-03 Thread John Coggeshall
Are you using PHP 4.3.2? Try upgrading :) John On Tue, 2003-06-03 at 05:23, Diana Castillo wrote: I use @getimagesize to resize pictures that I get from a url which comes from a database which is always changing. The problem is that sometimes the url does not contain the picture is is

RE: [PHP] @getimagesize

2003-04-03 Thread Niklas Lampén
Check if file exists with file_exists(). Niklas -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 3. huhtikuuta 2003 11:42 To: [EMAIL PROTECTED] Subject: [PHP] @getimagesize even though I use a @getimagesize , I still get the following Warning when the image is

Re: [PHP] @getimagesize

2003-04-03 Thread Diana Castillo
according to the documentation on php.net , This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. so it wont work for http Niklas lampén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Check if file exists with

RE: [PHP] @getimagesize

2003-04-03 Thread Niklas Lampén
the file right away, if you use that! :) Niklas -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 3. huhtikuuta 2003 13:42 To: [EMAIL PROTECTED] Subject: Re: [PHP] @getimagesize according to the documentation on php.net , This function will not work on remote files

RE: [PHP] getimagesize

2003-04-01 Thread daniel
wow wots this INPUT maxLength=128 name=image type=file ACCEPT=image/jpeg, image/jpg this is a first i never knew you could do that ? $imagewidth = getimagesize($_FILES['image']); = Original Message From Sebastian [EMAIL PROTECTED] = little problem with getimagesize function. I have a

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
What? the ACCEPT? yes it can be done :) http://www.w3.org/TR/REC-html32.html#rfc1867 cheers, - Sebastian - Original Message - From: daniel [EMAIL PROTECTED] | wow wots this | | INPUT maxLength=128 name=image type=file ACCEPT=image/jpeg, image/jpg | | this is a first i never knew you

RE: [PHP] getimagesize

2003-04-01 Thread daniel
well does this not work ? $imagewidth = getimagesize($_FILES['image']); and i already have mimetypes checking in my modded pear uploader class, so it can send error handling bak = Original Message From Sebastian [EMAIL PROTECTED] = What? the ACCEPT? yes it can be done :)

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
no it doesn't work, it returns this: Warning: getimagesize(Array) so its not getting the image from the form hmmm cheers, - Sebastian - Original Message - From: daniel [EMAIL PROTECTED] | well does this not work ? $imagewidth = getimagesize($_FILES['image']); | | and i already have

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
nope, still get Warning: getimagesize(Array) i've tried everything and it just doesn't get the form data :| cheers, - Sebastian - Original Message - From: daniel [EMAIL PROTECTED] | try removing that mime check , and put this to lower case encType | try INPUT name=image type=file for

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
php 4.3.1. I got it working, this is what i had to use: $imagewidth = getimagesize($_FILES [image][tmp_name]); if($imagewidth[0] = 1042) { $img_width = 1024; } else { $img_width = *; } i guess i had to add the tmp_name :) Thanks for the help. cheers, - Sebastian - Original Message

Re: [PHP] getimagesize

2003-03-27 Thread Diana Castillo
no that doesnt work, anything else? Dan Rossi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] @getimagesize ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize

Re: [PHP] getimagesize

2003-03-27 Thread Marek Kilimajer
Where you get this error from? Does it come from the browser or is it the script output? Diana Castillo wrote: anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not Found -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] getimagesize

2003-03-26 Thread Dan Rossi
@getimagesize ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not

Re: [PHP] getimagesize() issues starting with PHP 4.3..

2003-02-26 Thread Jason DiCioccio
--On Wednesday, February 26, 2003 16:35 +1000 Tom Rogers [EMAIL PROTECTED] wrote: Hi, Wednesday, February 26, 2003, 2:27:10 PM, you wrote: JD Can anyone reproduce this problem? [...] JD ? JD $retval=getimagesize('http://armanii.c.crosslink.net/arcticsilver/dtmsig4 .j JD pg'); JD echo

Re: [PHP] getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Tom Rogers
Hi, Wednesday, February 26, 2003, 2:27:10 PM, you wrote: JD Can anyone reproduce this problem? JD I am involved in running a large forum, and ever since our upgrade to PHP JD 4.3.1, there have been fairly random issues with getimagesize(). It JD happens only on certain images it seems.

Re: [PHP] getimagesize() with ftp-url?

2002-10-13 Thread Marek Kilimajer
I remember I got these kinds of errors when I wanted to connect to a slow server, the last message was always something like port command successfull, and that was it. Try connection to localhost, if that works? Stefan Wessman wrote: Hi! Can anyone tell me if the getimagesize() function is

Re: [PHP] getimagesize or loop pblm

2002-10-06 Thread Rasmus Lerdorf
It could take a while. Depends how fast your server's disk sub-system is. Going to disk to stat and open an image and then parse through the initial headers to get the sizing data can take some time. I'd suggest caching this data somewhere if you are going to need it on every request. -Rasmus

RE: [PHP] getimagesize or loop pblm

2002-10-06 Thread arnaud gonzales
So my code is clean ? There isn't a problem of infiny loop? My server is free.fr. How do u suggest i can cach the data? -Message d'origine- De : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Envoye : lundi 7 octobre 2002 03:07 A : arnaud gonzales Cc : Php-General Objet : Re: [PHP

Re: [PHP] getimagesize or loop pblm

2002-10-06 Thread Sascha Cunz
code is clean ? There isn't a problem of infiny loop? My server is free.fr. How do u suggest i can cach the data? -Message d'origine- De : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Envoye : lundi 7 octobre 2002 03:07 A : arnaud gonzales Cc : Php-General Objet : Re: [PHP

Re: [PHP] getImageSize

2002-10-02 Thread tuxen
check the permissions on the directory the image is in as well On Wed, 2002-10-02 at 12:51, Dan McCullough wrote: anyone know what migth cause this error. I changed the mode to 777, made sure that is was the correct owner.group. getimagesize: Unable to open

Re: [PHP] getimagesize with image in database clairifation

2002-09-01 Thread Chuck Barnett
in my example I'm not pulling from a db. It does not even work like I have it in my example though. Thanks, Chuck - Original Message - From: Chuck Barnett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 11:54 AM Subject: [PHP] getimagesize with image in database

Re: [PHP] GetImageSize and iptcparse problems

2002-02-06 Thread Jason Wong
On Thursday 07 February 2002 05:02, Steven Jarvis wrote: I've read the manual, and I'm still stuck, partially due to the manual itself. This is the first time I've dealt with this particular issue (parsing IPTC info from JPEGs). The example provided in the manual entry on GetImageSize:

Re: [PHP] GetImageSize Problem

2001-12-19 Thread Mirek Novak
You can get this information from header of this image file. Structure of BMP is here: http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/BMP.txt (found with google.com) M.N. --- [EMAIL PROTECTED] wrote: Hello, I'm PHPer from Korea. I have a problem with GetImageSize function. I wanted to know some

Re: [PHP] getimagesize (Bug? or error in PhP?)

2001-05-23 Thread bram
I' have version Version 4.0.4pl1 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

Re: [PHP] getimagesize (Bug? or error in PhP?)

2001-05-23 Thread Bert
On 23 May 2001 04:15:09 -0700, [EMAIL PROTECTED] (bram) wrote: I' have version Version 4.0.4pl1 URL support was added in PHP 4.0.5 ! So it won't work with 4.04... Bert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] GetImageSize() problem...

2001-05-15 Thread Edwin van Elk
Eric Knudstrup [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having an issue with 4.0.5 where the following code snippet: $orig = imagecreatefromjpeg($tmp); echo 'orig x: ' . imagesx($orig) . ' orig y: ' . imagesy($orig) .

Re: [PHP] GetImageSize() problem...

2001-05-15 Thread Rasmus Lerdorf
I might have the same problem with PHP 4.0.5 (win2k). Some of the images from my Kodak DC-260 digital camera, are not recognized correctly by getimagesize for some reason.. Example: ?php $imagehw = GetImageSize(http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.J PG);

Re: [PHP] GetImageSize

2001-05-09 Thread Moody
What version of PHP are you using? According to the manual: URL support was added in PHP 4.0.5 Moody Joseph Bannon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... For some reason, I can get the image image size for an image on the local machine, but remotely

RE: [PHP] GetImageSize

2001-05-09 Thread Joseph Bannon
What version of PHP are you using? According to the manual: URL support was added in PHP 4.0.5 Oh, I have 4.0.4. I need to upgrade don't I?!? Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] GetImageSize

2001-05-09 Thread Richard
It appears like so. Joseph Bannon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What version of PHP are you using? According to the manual: URL support was added in PHP 4.0.5 Oh, I have 4.0.4. I need to upgrade don't I?!? Thanks, J -- PHP General

Re: [PHP] GetImageSize() problem...

2001-05-03 Thread Eric Knudstrup
I think that was the first thing I tried. It might have something to do with the actual image itself. Images created with th PHP/GD routines come up with acceptable results. Thanks, Eric Quoting Dan Lowe [EMAIL PROTECTED]: Previously, Eric Knudstrup said: I am having an issue with 4.0.5

RE: [PHP] getimagesize question

2001-02-04 Thread PHPBeginner.com
$size = getimagesize($Frame."top.gif"); I think you should read this : http://www.zend.com/zend/tut/using-strings.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL

RE: [PHP] getimagesize question

2001-02-03 Thread Dundee \(Roland\)
To get the imagesize $PictSize = GetImageSize ($file_image_path . $PictName); $pictW = $PictSize[0]; $pictH = $PictSize[1]; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, 3 February 2001 9:28 PM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize

Re: [PHP] getimagesize question

2001-02-03 Thread Tom Meininger
Hi Ade, To combine strings, you simply use a period. For example: $image = $frame . "top.gif"; If $frame is "hello", then $image will come out as "hellotop.gif". Hope that helped... Regards, Tom _ Tomeeboy.com - Your place for the best

Re: [PHP] getimagesize question

2001-02-03 Thread Website4S
Tom, Thanks for that, worked a treat. Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] GetImageSize problem

2001-01-21 Thread Romulo Roberto Pereira
Hello! First - some ISP block you from get files from their server by a httpd request (that is what php does... I think!). To be sure if this is set or not, in the other ISP (not the one that the images are) write a simple html like this: htmlheadtitleloading images between

Re: [PHP] GetImageSize problem

2001-01-21 Thread Romulo Roberto Pereira
file fclose ($fd); return array( $width,$height,$type ); } else return array( '','','' ); }; file://endif valid file pointer chk }; // end function ? Rom - Original Message - From: Sue Bailey [EMAIL PROTECTED] To: Romulo Roberto Pereira [EMAIL PROTECTED] Cc: p

Re: [PHP] GetImageSize problem

2001-01-21 Thread Thies C. Arntzen
On Sun, Jan 21, 2001 at 03:05:31PM +, Sue Bailey wrote: I have a bunch of images living on one ISP's server which I want to use on another page on another ISP's server, with GetImageSize. I RTFM, and see "The filename needs to be either relative to the current document, or an absolute

Re: [PHP] GetImageSize problem

2001-01-21 Thread eschmid+sic
On Sun, Jan 21, 2001 at 07:02:07PM +0100, Thies C. Arntzen wrote: On Sun, Jan 21, 2001 at 03:05:31PM +, Sue Bailey wrote: I have a bunch of images living on one ISP's server which I want to use on another page on another ISP's server, with GetImageSize. I RTFM, and see "The filename