Re: [PHP] Image Header Problems

2004-01-13 Thread Bob Eldred
- 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

[PHP] Image Header Problems

2004-01-12 Thread Bob Eldred
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

Re: [PHP] Image header problems--SOLVED!

2001-08-09 Thread Hugh Danaher
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

RE: [PHP] Image header problems

2001-08-09 Thread Corin Rathbone
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

[PHP] Image header problems

2001-08-09 Thread Hugh Danaher
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