#30005 [Opn->Bgs]: image header problem
| From: | derick@php.net | Date: | Tue, 07 Sep 2004 07:23:30 +0000 |
| Subject: | #30005 [Opn->Bgs]: image header problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65855@lists.php.net to get a copy of this message | ||
ID: 30005
Updated by: derick@php.net
Reported By: r dot h dot zeelenberg at bravo-informatisering dot nl
-Status: Open
+Status: Bogus
Bug Type: *Graphics related
Operating System: redhat
PHP Version: 4.3.9RC2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2004-09-07 09:00:27] r dot h dot zeelenberg at bravo-informatisering
dot nl
Description:
------------
Hi fellow-phpers..
I am having a strange problem...
I stripped my code to the basic to elimenate things..
What i've got...
php file get_test.php
This should place an image on the screen in verboden.php there should
be some checks but i've wiped them out for clearification. So
verboden.php is :
<?php
$documentroot=$_SERVER['DOCUMENT_ROOT'];
?>
get_test.php is :
<?php
$documentroot=$_SERVER['DOCUMENT_ROOT'];
#include($documentroot.'/verboden.php');
$afbeelding_file=$documentroot.'/images/geen_afbeelding_1.jpg';
header("Content-type: image/jpg");
$current_file=ImageCreateFromJPEG($afbeelding_file);
ImageJPEG ($current_file);
ImageDestroy($current_file);
?>
Attention! This works only!!! when i comment out the include for
verboden.php
I think this is very strange... Firefox is saying there is something
wrong with the image.. IE6 will try to download it.
Anyone idea's??
TIA
Ronald
ps this one ruined my sunday ;(
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30005&edit=1