Hi,
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.
If I do this on my remote server, nothing happens and i continue to
have those 2 warnings. I also tried to use this command in the php.ini
file and nothing happened.
Can someone help me on that matter? I would really appreciate.