[PHP] Re: getimagesize() for image resources

2004-12-13 Thread M. Sokolewicz
Greg Donald wrote: Does anyone know a way to get the size of an an image while it exists as an image resource? getimagesize() appears to work on image files, but not image resources. I need something that works on image resources like those created with the PHP imagecreatefrom* functions. I

Re: [PHP] Re: getimagesize() for image resources

2004-12-13 Thread Greg Donald
On Mon, 13 Dec 2004 23:17:22 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: imagesx() and imagesy() I knew there had to be a way. Thanks so much. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

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

2003-12-07 Thread Justin Patrin
Galen wrote: I'm using a MySQL database to store images as BLOBs. I know how to handle all the MySQL stuff, it's easy, and really makes keeping track of files nice an clean. No permissions, no risk of getting things out of sync, finding stuff is as easy as SQL. My question is about handling

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

2003-12-07 Thread Galen
So you're saying there's no way to do what I want to do. Anybody got any other ideas? It seems so stupid to be unable to run functions that accept files on variables, with so many people using databases and whatnot these days. -Galen On Dec 7, 2003, at 1:46 AM, Justin Patrin wrote: Galen

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

2003-02-25 Thread Jason DiCioccio
Oops.. Big typo.. It should read that I get *nothing* echo'd back, except newlines :). Thanks again, -JD- --On Tuesday, February 25, 2003 23:27 -0500 Jason DiCioccio [EMAIL PROTECTED] wrote: Can anyone reproduce this problem? I am involved in running a large forum, and ever since our upgrade

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

2002-10-13 Thread nicos
getimagesize isn't remote. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Stefan Wessman [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi! Can anyone tell me if the getimagesize() function is supposed to work with

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

2002-10-13 Thread Stefan Wessman
Well, it is remote in the case of http-url's. Try this code: ?php $size = getimagesize(http://www.php.net/gifs/php_logo.gif;); echo 'pre'; print_r($size); echo '/pre'; ? And you will see this result: Array ( [0] = 120 [1] = 64 [2] = 1 [3] = width=120 height=64 [bits]

[PHP] Re: getimagesize or loop pblm

2002-10-07 Thread Tim Toohey
Arnaud Gonzales wrote: for($i=0;$i=56;$i++){ should be for($i=0;$i56;$i++){ to loop 56 times. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getimagesize with image in database

2002-09-02 Thread Erwin
Chaillan Nicolas wrote: Hi, There is no way to get the filesize of a file using a remote file. That's not true. GetImageSize works also on remote files. here's my code $imagesize = getimagesize(http://domain/image.jpg); echo $imagesize[3]; but it returns nothing. If I use a local file,

[PHP] Re: getimagesize with image in database

2002-09-01 Thread CHAILLAN Nicolas
Hi, There is no way to get the filesize of a file using a remote file. You should download it to a tmp directory then check. If it is get with an http server, you should code something with sockets to ask to the http server the filesize using a request. -- Merci de nous avoir choisi. - Thanks

[PHP] Re: GetImageSize

2001-07-11 Thread Matt Simpson
Here is the function, but there is nothing wrong with the function I don't think. Here is the function: function GetURLImageSize($urlpic) { return GetImageSize($urlpic); } Here is how we call it: GetURLImageSize (http://www.domainname.com/admin/showimg.php?s=17type=categoryimage=70;);

[PHP] Re: GetImageSize

2001-07-10 Thread Adam
For some reason, at random and without warning, the function just seems to stop working and does nothing but wait and timeout at 80 seconds. When you go to the page say www.somedomain.com it just waits and does not load anything for 80 seconds, and when it does, the images that use