you can use ob_start to start ouput buffering at the beginning of your script and use ob_flush to start sending data back to the user. You can also send the header before any data is send to the user.
Why your webhost gives the error and your computer doesn't I'm not sure, maybe they got output buffering on by default for some reason.
You should check the configuration for that.
check the configuration of php with a file with these contents:
- Code: Select all