<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi friends,<br>
<br>
I have been battling with a bad problem of non-resolving jpeg images in
PHP in my module Brilliant Gallery. It only happens in some systems. <br>
<br>
I then found this problem is independent of Brilliant Gallery -- it
happens even if you open a static jpeg and then output it to browser. <br>
<br>
After many evenings of investigating this I have found that it happens
after running Drupal's initialization:<br>
<code>drupalize();<br>
function drupalize() {<br>
while (!@stat('./includes/bootstrap.inc')) {<br>
chdir ('..');<br>
}<br>
require_once './includes/bootstrap.inc';<br>
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);<br>
}</code><br>
<br>
I have noticed - though I am not sure it is related, that after said
initialization the 'Expires' header is set to 1978 - is that normal? <br>
<br>
Could you please have a quick look at
<a class="moz-txt-link-freetext" href="http://drupal.org/node/186863#comment-742674">http://drupal.org/node/186863#comment-742674</a> ... I have described my
test precisely, with header dumps before said initialization and after
it, so you will see all the differences.<br>
<br>
Hope some of you have some experience with this or related problem and
will be able to help me -- and many other users. (I'd be so happy to
get this working before travelling to Drupalcon!)<br>
<br>
Thanks!!<br>
<br>
<div class="moz-signature">Tomáš (vacilando)<br>
<a class="moz-txt-link-freetext" href="http://www.vacilando.eu">http://www.vacilando.eu</a><br>
</div>
</body>
</html>