Re: [phpOpenTracker-general] trouble getting phpOpenTracker running via webbug
John B <[email protected]> Mon, 12 Sep 2005 10:09:22 -0700
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
hello mike,
thanks for responding. there was in fact a newline character hanging
out on line 31, but removing it did not fix the problem (the line number
of the error message moved. here's the code (this is taken from the
standard image.php provided in phpOpenTracker/docs/scripts/image.php
after removing the newlines in and around line 31, this is my code. the
error is occurring on the "printf" line after the header statements are set:
header('Content-type: image/gif');
header('P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"');
header('Expires: Sat, 22 Apr 1978 02:19:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
printf('%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%',71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59);
any thoughts? i didn't make any large changes to any of the files, just
adjusting paths where appropriate, and telling the conf file where my
database connection is.
thanks again,
jB
Mika Tuupola wrote:
>On Fri, 9 Sep 2005, John B wrote:
>
>
>
>>i am encountering this error when i load a page containing the bugs
>>suggested in the examples/webbug/index.htm file:
>>
>> Sep 9 16:08:32 www httpd: PHP Warning: session_register(): Cannot
>> send session cookie - headers already sent by (output started at
>> /home/medzilla/httpd/html/image.php:31) in
>> /usr/local/lib/php/phpOpenTracker/Container.php on line 67
>> Sep 9 16:08:32 www httpd: PHP Warning: session_register(): Cannot
>> send session cache limiter - headers already sent (output started at
>> /home/medzilla/httpd/html/image.php:31) in
>>
>>
>
> Is there an extra newline in
>
> /home/medzilla/httpd/html/image.php
>
> at line 31? If there is, remove it.>
>
>
>
>