Hello!
I'm also guessing that it's the LAST line of the file with the
encodeDomain function in it that you include in your test.php
I'm also guessing that there's a NEWLINE character after the final ?
in that file on your 5.0.4 box, but that NEWLINE character is *NOT*
there on your 4.0 box.
On Wed, August 17, 2005 10:12 am, Marten Lehmann wrote:
I have a function catching the output of a script:
function encodeDomain ($domain) {
ob_start();
system(echo '$domain');
$output = ob_get_contents();
ob_end_clean();
}
And I have a php-script
Richard Lynch wrote:
Warning: Cannot modify header information - headers already sent in
test.php on line 4
I'm guessing that the error message has MORE information than that --
like the line number of the file in which the output occurred.
I'm also guessing that it's the LAST line of the
Hello,
I have a function catching the output of a script:
function encodeDomain ($domain) {
ob_start();
system(echo '$domain');
$output = ob_get_contents();
ob_end_clean();
}
And I have a php-script using this function:
?
encodeDomain($domain);
This doesn't help with your ob problem, but if you simply want to
capture the output of the system cmd, then you can use $output =
shell_exec($command) instead of system() IIRC.
On 8/17/05, Marten Lehmann [EMAIL PROTECTED] wrote:
Hello,
I have a function catching the output of a script:
5 matches
Mail list logo