Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Steve Brecher
May 12, 2006, 12:56 am
rate this thread
0.4 on the 0-10.0 scale from utter cluelessness to wizardry with respect to
PHP, I find a small debugging package at
and take the script presented there and name its file debugging.php. It
includes several function definitions, but no other code. So that you don't
have to follow the link, my guess is that the relevant definition is:
static $window_opened = FALSE;
debugWindow.document.writeln('<title>PHP Remote Debug
debugWindow.document.writeln('<hr size=1 width="100%">');
$window_opened = TRUE;
I insert as the first statement of the phpBB's index.php:
and load index.php. The aim is to see whether the debugging code will parse
error-free. I get the following output prior to the expected first page of
Warning: Cannot modify header information - headers already sent by (output
started at [path]/forum/debugging.php:1) in
[path]/forum/includes/page_header.php on line 483
and two more of the same warnings for lines 485 and 486. Each of these
statements is a call to header().
Am I the only one confused, or is the PHP 4.4.2 that my shared linux/Apache
host is running also confused? I am confused because I don't see how simply
defining functions could generate the warnings.
For mail, please use my surname where indicated:
email@example.com (Steve Brecher)
Steve Brecher of comp.lang.php make plain:
Always the first thing to suspect, with that sort of problem. The second
thing to suspect is white space after the ?>, and the third thing to
suspect is invisible characters (e.g. control characters) which can creep
in upon occasion.
Phorm PHP Form Processor
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum