Hi All,
Ok, before we start, I know this topic has been flogged to death on how
to load images from a database using PHP. So, before we start, I have
had this method of loading images in this way working for years. :)
However, the problem I've come across has given me a major headache and
On Wed, 2005-11-16 at 18:01, Kevin Smith wrote:
Has anyone come across this problem before? Also the httpd.conf and
php.ini files are identical in everyway, apart from IP addresses.
Did you double check in the phpinfo() output for each server that the
php.ini is being loaded for where you
HI Robert,
I have checked both phpinfo() and php -i via the cli as follows and
both produce the expected results. Also phpinfo() shows the exact same
"Configure Command" data for both servers.
Server #1
[EMAIL PROTECTED] limiteds_v2]# php -i | grep ini
Configuration File (php.ini) Path =
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
Server #1 (working)
http://www.limiteds.com/includes/image_load.php?image_id=8522field_id=image_full_2
Headers for this one:
Content-Transfer-Encoding: binary
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
P3P:
On Wed, 2005-11-16 at 18:44, Kevin Smith wrote:
Any other ideas? This is a very strange one.
The headers aren't the same, specifically the second one doesn't send
the type as image/jpeg.
Here's the first one:
-
[EMAIL
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
I have checked both phpinfo() and php -i via the cli as follows and both
produce the expected results. Also phpinfo() shows the exact same
Configure Command data for both servers.
Server #1
[EMAIL PROTECTED]
Hi Curt,
In that case, what on earth is going on. This is the script which is
on both servers: However, I noticed that if I moved the following
lines to the top of the script:
header("Content-Type: image/jpeg");
header("Content-Transfer-Encoding: binary");
..and hard-code the mime type, it
Solved!
I don't believe it, there was an extra carriage return in the require
file "housekeeping.php". This carriage return "is" present on Server
#1, but Server #2 obviously doesn't like it.
I am now going to stick my head out of my window and scream for not
thinking that that could have
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:24 PM
To: php
Subject: Re: [PHP] Loading Images
U, is that correct?
I thought (although never tried) that you could reference an image as
IMG SRC=image.php?id=3 or simular, in which case the headers and
everything else CAN be sent
. But I guess it's the same basic principle.
-Kevin
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 5:24 PM
To: php
Subject: Re: [PHP] Loading Images
U, is that correct?
I thought (although never tried) that you could reference
(403) 781-4948
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 12:47 PM
To: Chris
Cc: [EMAIL PROTECTED]
Subject: [PHP] Loading Images
I don't have any code for this, but I'm hoping someone can point me in the
right direction. I want
I don't have any code for this, but I'm hoping someone can point me in the
right direction. I want to load images or navigation menus dynamically. Is
it possible to build a database of images and then use php to display
them? Or something along these lines. I know this must be possible,
becuase I
At 26.03.2002 12:47, you wrote:
I don't have any code for this, but I'm hoping someone can point me in the
right direction. I want to load images or navigation menus dynamically. Is
it possible to build a database of images and then use php to display
them? Or something along these lines. I
I wasn't so much concearned about security of users grabbin pics. I am
more trying to learn how these people load there menus dynamically and
pics dynamically. Do you have any links to pages or code that describe how
to make a link in the db to pics on my filesystem?
Thanks.
-Chris
On Tue, 26
. :)
-Kevin
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 2:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Loading Images
I wasn't so much concearned about security of users grabbin pics. I am
more trying to learn
]]
Sent: Tuesday, March 26, 2002 2:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Loading Images
I wasn't so much concearned about security of users grabbin pics. I am
more trying to learn how these people load there menus dynamically and
pics dynamically. Do you have any
At 26.03.2002 14:44, you wrote:
I wasn't so much concearned about security of users grabbin pics. I am
more trying to learn how these people load there menus dynamically and
pics dynamically. Do you have any links to pages or code that describe how
to make a link in the db to pics on my
17 matches
Mail list logo