randomsai Posted January 19, 2010 Share Posted January 19, 2010 currently i am trying to use my message centre platform to simulate sending and recieving of messages. the problem i am encountering is that when i enter the url of the file, an error message comes up with "unrecognized message version". the code looks like this: <?php header("Content-type: text/xml"); echo("<?xml version=\"1.0\" ?>\n"); // Connects to your Database mysql_connect("localhost", "root", "random") or die(mysql_error()); mysql_select_db("trinidadnews") or die(mysql_error()); $data = mysql_query("SELECT * FROM news") or die(mysql_error()); $info = mysql_fetch_array( $data ); $headline = $info['HEADLINE']; Print "<title>$headline</title> "; ?> can anyone help? Link to comment https://forums.phpfreaks.com/topic/189062-unrecognized-message-version/ Share on other sites More sharing options...
o3d Posted January 19, 2010 Share Posted January 19, 2010 Is there an error code and/or an error line number if the number is generated by php? Link to comment https://forums.phpfreaks.com/topic/189062-unrecognized-message-version/#findComment-998240 Share on other sites More sharing options...
randomsai Posted January 20, 2010 Author Share Posted January 20, 2010 the error code is just that as i said, when i run the php code, i get my required output, i just dont understand why the version is a problem, because it suppose to be 1.0 xml. Link to comment https://forums.phpfreaks.com/topic/189062-unrecognized-message-version/#findComment-998530 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.