PDA

View Full Version : What does this error message mean?



FlashNewby
March 11th, 2005, 08:54 AM
I'm getting this error message when I excecute my php script, can someone tell me what this means? The php file is an html file with php script in it

Invalid at the top level of the document. Error processing resource 'http://www.sitename.com/somename.php...

I'm doing something like this:


<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

Could this line be the problem? If it is how else can I code this line? I need this line in order to use xhtml.

Thanks

CyanBlue
March 11th, 2005, 09:01 AM
Howdy... :)

Uh, maybe you want this??? (No '?' after '<' and before '>')

<?php
echo "<xml version=\"1.0\" encoding=\"iso-8859-1\"".">";
?>

open-think
March 11th, 2005, 09:03 AM
or



<?php
echo "<xml version='1.0' encoding='iso-8859-1'>";
?>

FlashNewby
March 11th, 2005, 05:03 PM
Thanks guys will try this. Appreciate it.... :}