|
Posted by Michael Fesser on July 12, 2008, 10:40 pm
Please log in for more thread options
.oO(Webrickco)
>I have the following issue when i upload my files to my hosting. I
>cannot send the following headers:
>
><?php
>header('Content-Type: text/xml');
>header('Pragma: no-cache');
>
>When I execute the code, I get:
>
>Warning: Cannot modify header information - headers already sent by
>(output started at /home/content/d/a/v/davidc2p/html/testajax.php:1)
>in /home/content/d/a/v/davidc2p/html/testajax.php on line 1
>
>Warning: Cannot modify header information - headers already sent by
>(output started at /home/content/d/a/v/davidc2p/html/testajax.php:1)
>in /home/content/d/a/v/davidc2p/html/testajax.php on line 2
>
>Notice that this code works perfectly on my local server because I
>have added PHP_FLAG output_buffering on in my .htaccess file.
You should _disable_ output buffering and fix your code instead.
Check what causes the output and rethink the code structure.
Micha
|