# Header problem

**URL:** <https://forum.kirupa.com/t/header-problem/291761>\
**Category:** Uncategorized\
**Created:** [July 4, 2009, 10:08pm UTC](https://forum.kirupa.com/t/header-problem/291761 "2009-07-04T22:08:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bthompson](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@bthompson](https://forum.kirupa.com/u/bthompson)\
**Post date:** [July 4, 2009, 10:08pm UTC](https://forum.kirupa.com/t/header-problem/291761/1 "2009-07-04T22:08:01Z")

</div>

Hi, I was looking at [this tutorial](http://www.kirupa.com/web/mysql_xml_php.htm).

I simplified the code just to get started to:

```auto
<?php header('Content-type: text/xml');

$xml_output = "<?xml version=\"1.0\"?>
";
$xml_output .= "<entries>
";
$xml_output .= "</entries>";

echo $xml_output;

?>

```

That is my COMPLETE code! Nothing else! The problem is that I keep getting:

```auto
**Warning** : Cannot modify header information - headers already sent by (output started at /home/user/public_html/photos.php:1) in **/home/bradthom/public_html/photos.php** on line **1**

```

How is that possible? Any thoughts?

Thanks!
