oh boy, if you are reading my forum here its probably because you have some php script that uses this line of code:

HTML CODE:
<?xml version="1.0" encoding="utf-8"?>


am i right? and when you run the scripts you see an error displays something like this:

PHP ERROR:
Parse error: parse error, unexpected T_STRING
in C:apachefriends\\xampp\\htdocs\\mobile\\index.php on line 6


ok this is how my first like look like:

PHP CODE:
1. <?php
2. include ('../inc/database.php');
3. include ('inc/functions.php');
4.
5. ?>
6. <?xml version="1.0" encoding="utf-8"?>


as you can see, on line six i am trying to parse xml. i am making a mobile file and this is required, so how do you fix it..

ANSWER:


the answer is simple, output the <?xml with the echo in within php. so my code will look like this now:

PHP CODE:
1. <?php
2. include ('../inc/database.php');
3. include ('inc/functions.php');
4.
5. echo '<?xml version="1.0" encoding="utf-8"?>';
6. ?>


hope that helps