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
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.
I also tried creating an array
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
$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);
header('Content-Type: image/
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 realize I can write th
Hi all,
I've got two web forms that handle photo uploads. In one directory ...
getimagesize() works fine, in the other... it doesn't:
Directory that it works.
/php/webForm1.html (has action to /php/submitForm.php)
/php/submitForm.php
Directory that doesn't work.
/otherDir/webForm2.html (ha
[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
>On Friday 16 January 2004 10:32, Matt Hedges wrote:
>
>>> if ($_FILES['imagefile']['type'] != "image/pjpeg")
>
>The 'type' in $_FILES is provided by the browser. IIRC only IE uses
>"image/pjpeg" whilst other browsers use "image/jpeg". But regardless of
what
>the browser sets, it is more reliable
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
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 stuff once you p
Hi,
I'd like to insert the URL of a picture, it's dimensions an an accompanying text into
a database.
I enter the URL and the text in a form and post it to a script, the dimensions shall
be retrieved by GetImageSize in the second script.
That worked well while all URLs were from another Server.
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
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 supposed to , and then I get the
following error - I can't seem to get rid of this error, does anyone know
how
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
heck 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
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
even though I use a @getimagesize , I still get the following Warning when the image
is not on the server. I need to somehow not have the warning come out when there is
no image there.
Warning: getimagesize(http://www.hotelresb2b.com/planos/PLHAHC019330.GIF)
[function.getimagesize]: failed to
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,
little problem with getimagesize function. I have a form upload and want the
images resized only if greater than 1024, if greater than 1024 then i want
it to resized, the problem is i do not know if getimagesize is getting the
form data:
// some if's ...
$imagewidth = getimagesize($for
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:
@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
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 unsubscribe, visit: http://www.php.net/unsub.php
--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
Can anyone reproduce this problem?
I am involved in running a large forum, and ever since our upgrade to PHP
4.3.1, there have been fairly random issues with getimagesize(). It
happens only on certain images it seems. However, it wasn't happening with
4.2. When using the following code:
htt
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
Hi!
Can anyone tell me if the getimagesize() function is supposed to work with
ftp-url's?
The PHP Manual states "URL support was added in PHP 4.0.5", but maby that is
supposed to mean http-url's only?
The following is an expample of how i would like to be able to use
getimagesize():
ftp://user:
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
Hi all,
Does anybody can tell me why i have this error :"Fatal error: Maximum
execution time of 5 seconds exceeded in photos2.php on line 28"
whith this
$tab_img = array();
$tab_img_size = array();
for($i=0;$
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
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_berkeley_bed_2drw.jpg' for reading
=
"Theres no such thing as a probl
Please can somebody help my, why i get this errormessage:
Warning: getimagesize: Unable to open '../images/2002/11/jpg/' for reading. in
C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php
on line 852
While the echo $name says winter.jpg f.x.:
echo
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]
Hi, I'm trying to get an image size from an image in a database.
here's my code
$imagesize = getimagesize(http://domain/image.jpg);
echo $imagesize[3];
but it returns nothing. If I use a local file, without http it works.
I have php 4.0.6
any suggestions.
Thanks,
Chuck
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:
>
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:
Gives me the following error on php 4.0.6:
Warning: Call-time
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
Hello, I'm PHPer from Korea.
I have a problem with GetImageSize function.
I wanted to know some information about BMP image.
So, I tried to use GetImageSize on PHP 4.0.5 , Linux.
But, it didn't work. GetImageSize function returned nothing.
Then, I tried it on PHP 4.0.6, Windows2000.
Ooops.. I
I started to use this command in my soft about 3 months ago and all went
well, I've had to do some re-organising and I changed the varable that holds
the old image root, to the new image root and ofcouse moved the images, but
now my GetImageSize() doesn't work any more,
http://www.guia-marbella.c
We are having some serious issues with GetImageSize in PHP 4.0.x and i'm
wondering if anyone else had similar issues and solved or came up with a
different solution.
For some reason, at random and without warning, the function just seems to
stop working and does nothing but wait and timeout at 80
http://www.php.net/manual/en/function.getimagesize.php
Here it seems to say that you can use getimagesize with a URL
But here
http://www.phpbuilder.com/mail/php-developer-list/282/2426.php
it says you can't
Any comments? is it just in newer versions?
Susan
--
PHP General Maili
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
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 manual they use Getimagesize() too for loadi
> 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
For some reason, I can get the image image size for an image on the local
machine, but remotely give me an error
My code
";
echo "size: $size[1]";
echo "size: $size[2]";
echo "size: $size[3]";
$size = GetImageSize
("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg";);
ech
i'm having some odd problems with getimagesize.
sometimes it works, sometimes it doesn't.
this is the code i'm calling it with:
$p_size = getimagesize($photos[$start]);
where $photos[$start] has the value im000301.jpg. the php file and the
image file are located in the same directory.
this do
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.
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)
. '';
$orig_size = getimagesize($tmp);
echo "orig x: $orig_size[0] orig y: $orig_si
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 04, 2001 5:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] getimagesize question
Hi,
I`m using the following to get the image size...
$size = getimagesize("$Frame");
My problem is $Frame can`t contain the full name of t
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]
.com - Your place for the best stuff on the net!
Visit http://www.tomeeboy.com today!
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 03, 2001 3:27 PM
Subject: [PHP] getimagesize question
> Hi,
>
> I`m using the followin
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
Hi,
I`m using the following to get the image size...
$size = getimagesize("$Frame");
My problem is $Frame can`t contain the full name of the image for various
reasons, so what I need to do is somehow add the rest, something along the
lines of this...
$size = getimagesize("$Frame'top.gif'");
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
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 filesystem path. Thus absolute URL paths will not work."
which is ab
75 matches
Mail list logo