Re: Problem with GD after upgrading Entropy 5.1.6 -> 5.2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/10/07, M5 <m5@xxxxxxxxxxxxxxxx> wrote:
I've got a little PHP script that generates charts, that has been
working perfectly every day for the past couple years. Since
upgrading the Xserve's PHP from 5.1.6 to 5.2.2 (both Entropy), it has
stopped working. Specifically, it doesn't return any GIFs (charts).
Actually, it will output a GIF providing that session_start() isn't
called at the beginning of chart.php. The reason session_start() is
called is that the data needed by chart.php resides as session
variables—so the session needs to be propogated to chart.php when
it's called.

My gut feeling is that *something* in chart.php is now throwing a
notice or warning or something, and that is corrupting the GIF file
(which returns as a broken icon). Here's the beginning of chart.php,
which as I mentioned, was working perfectly verbatim up until last week:

<?php

session_start();
error_reporting(0);
header("Content-type: image/gif");

[...]

Here is a modified version of the above, based on comments I've
gleaned from various forums. (It still doesn't work, btw.)


<?php

@session_start();
@set_time_limit(0);
@error_reporting(0);

// session_start();

header("Content-type: image/gif");
header("Cache-Control: cache, must-revalidate");
header("Pragma: public");

[...]


...Rene




Make sure you have error logging turned on and view your errors that
way.  When things are set up like this you can always know what is
going wrong no matter if you have a non text content type set or the
script randomly dies.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux