Re: [PHP] ob_start changed from php4 to php5?

2005-08-19 Thread Marten Lehmann
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.

Re: [PHP] ob_start changed from php4 to php5?

2005-08-18 Thread Richard Lynch
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

Re: [PHP] ob_start changed from php4 to php5?

2005-08-18 Thread Jasper Bryant-Greene
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

[PHP] ob_start changed from php4 to php5?

2005-08-17 Thread Marten Lehmann
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);

Re: [PHP] ob_start changed from php4 to php5?

2005-08-17 Thread Rory Browne
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: