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 do
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 'somethi
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);
hea
[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
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
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 Castil
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 supp
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 dat
creating error as well. Remember to close 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 , Th
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 file_e
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
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 Me
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 for now
| , let me know
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 h
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 :)
>
>http://
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
|
|
|
| this is a first i never knew you could do that ?
|
| $imagewidth = getimagesize($_FILES['image']);
|
wow wots this
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 form upload and want the
>images resized only if greater than 1024,
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 unsu
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] getimagesiz
@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 Fo
--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>
$retval=getimagesize('http://armanii.c.crosslink.net/arcticsilver/dtmsig4
.j JD> pg');
JD> echo "$retva
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. Ho
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() functio
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
>
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
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
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 'images/product/i3_berkele
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 dat
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:
>
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 informa
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, e-ma
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.ne
> 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:
>
> $imagehw =
> GetImageSize("http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.J
> PG
""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($ori
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
>
> 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 P
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 rem
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.
$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 PROT
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]
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 stu
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 qu
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 filen
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
endif chk for valid file types
# got the pic dimensions, close the file
fclose ($fd);
return array( $width,$height,$type );
} else
return array( '','','' );
}; file://endif valid file pointer chk
}; // end function
?>
Rom
- Original
Thanks Rom - I can get the pics with an img src tag, which is why I
assumed that GetImageSize would also work - but now I'm told it only
works on the local machine, so I guess I'll have to live with text
jumping about while pics download. :(
Romulo Roberto Pereira wrote:
>
> Hello!
>
> First -
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:
loading images between servers
http://Domain/ImagesDir/I
47 matches
Mail list logo