|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-07 09:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
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 ;(