Hello qt,
Tuesday, March 9, 2004, 9:08:15 PM, you wrote:
q> When I am using following codes, I am gettinh "Cannot modify header
q> information - headers already sent by " error. What should I do?
Don't send any output from your script, anywhere. This includes white
space around the PHP tags or w
Dear Sirs,
When I am using following codes, I am gettinh "Cannot modify header
information - headers already sent by " error. What should I do?
header ("Content-type: image/png");
$im = @imagecreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallo
For the archives, for when someone else runs into this. The following
headers solved the issue where IE would only save an image as a BMP,
when the image was, in fact, a JPG:
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
heade
red" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Sunday, January 18, 2004 5:45 AM
Subject: RE: [PHP] Image Header Issues
> Giving up sessions for one simple issue sounds a bit drastic. I'll dig up
> the header information I'm sending that the x.
en other performance
benefits.
Larry.
-Original Message-
From: Bob Eldred [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 11:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Header Issues
OK, that's it. The session_start() is the issue. Unfortunately, the
"&
d be happening, that would be great.
Bob
- Original Message -
From: "Toby Irmer" <[EMAIL PROTECTED]>
To: "Larry Brown" <[EMAIL PROTECTED]>; "Bob Eldred"
<[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]>
Sent: Saturday
me I have header problems.
Thanks
Larry
-Original Message-
From: Toby Irmer [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 5:12 PM
To: Larry Brown; Bob Eldred; PHP List
Subject: Re: [PHP] Image Header Issues
I have the same problem. Strange: I have a session_start(); before the
hea
t; <[EMAIL PROTECTED]>
To: "Bob Eldred" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 6:32 PM
Subject: RE: [PHP] Image Header Issues
> try adding showpicture.php?pid=111384&img=x.jpg to the end even though you
> a
ted on the fly)
-Original Message-
From: Bob Eldred [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Header Issues
Again, it is *not* that known issue. That's the very first thing I checked.
If that were the iss
t;[EMAIL PROTECTED]>
To: "Bob Eldred" <[EMAIL PROTECTED]>
Cc: "PHP Lists" <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 7:28 AM
Subject: Re: [PHP] Image Header Issues
This is a known issue with IE. And it is in their knowledge base. If I
recall the fix
age -
> From: "Arthur Pelkey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, January 16, 2004 6:29 AM
> Subject: RE: [PHP] Image Header Issues
>
>
> > I've had this same problem, and it was not relat
AIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 6:29 AM
Subject: RE: [PHP] Image Header Issues
> I've had this same problem, and it was not related to any script I
> wrote, ie just stopped saving in any other format(for images), besides
> bmp, I am sure
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 3:18 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Header Issues
hiho,
it could be a ie-problem, see
http://support.microsoft.com/default.aspx?scid=kb;EN-US;810978
g. martin luethi
Thu, 15 Jan 2004 14:18:29 -0800
hiho,
it could be a ie-problem, see
http://support.microsoft.com/default.aspx?scid=kb;EN-US;810978
g. martin luethi
Thu, 15 Jan 2004 14:18:29 -0800 Bob Eldred <[EMAIL PROTECTED]>:
> Well, I've done a lot of web searching, and a lot of experimentation, but
> haven't hit upon a fix for my issue
Well, I've done a lot of web searching, and a lot of experimentation, but
haven't hit upon a fix for my issue yet.
Currently, images are served on a site I'm working on in two ways:
1) Free Images are served normally ().
2) Non-Free Images are served through a PHP wrapper with authentication
func
- Original Message -
> function showpix($picture_id)
> {
> $sql="SELECT ug.group_name, p.name from usenet_groups as ug,
> pictures as p WHERE p.id='$picture_id' AND ug.id=p.group_id";
> $result=mysql_query($sql) or die(mysql_error());
> $row=mysql_fetch_ar
Hi there,
I'm wanting to serve images outside the docroot of apache, so that the
images can't be so easily hijacked. However, I appear to be running into a
problem with (I think) the headers not being sent properly. IE (v6) will
only save the images as BMPs, not as JPGs, even though they are JPG
Hi!
I don't know if this is ok, so can somebody give me some explanation.
I made some php script to get Header from http request. When I request
some image header looks like:
HTTP/1.1 200 OK
Date: Mon, 11 Aug 2003 17:24:14 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.1
Last-Modified: Fri, 25 Oct 200
--- Uros Gruber <[EMAIL PROTECTED]> wrote:
> I made some php script to get Header from http request. When I
> request some image header looks like:
>
> HTTP/1.1 200 OK
> Content-Type: image/jpeg
>
> Then I made some php script to showing images and when i
> request for example img.php?name=somejp
Hello,
Monday, August 11, 2003, 10:42:58 PM, you wrote:
CS> --- Uros Gruber <[EMAIL PROTECTED]> wrote:
>> I made some php script to get Header from http request. When I
>> request some image header looks like:
>> Content-Type: text/html
CS> Your instincts serve you well. You want the Content-Typ
It worked!! but only after I removed the two blank lines above the
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 3:40 PM
Subject: RE: [PHP] Image header problems
> Remove the line:
>
> print "jpeg format";
>
> The error i
Remove the line:
print "jpeg format";
The error is because you have sent output to the browser before you are
trying to send a header.
-Original Message-
From: Hugh Danaher [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2001 23:26
To: Php-General
Subject: [PHP] Image header pr
I want to generate an image using the following code, and think it should have worked.
Unfortunately I get an error message saying the header info has already been sent,
and the browser (IE5) doesn't print a picture just the
characterset representing the picture. I think I've got it right, but
23 matches
Mail list logo