I wanted to host wrtl's script for DS and myself to use since we rely on his serverxml.php for the time being (until G5 recreates an alternative using javascript) for many scripts on our forums.
I am trying to host this and get this working: https://armagetronad.svn.sourceforge.ne ... erverlist/
However... wrtl doesn't include how to setup the connect.php at all. And that is the only problem I seem to be having I think.
This is what I have made for my connect.php:
Code: Select all
<?php
$conn = mysql_connect("localhost", "database_name", "some_pass");
if (!$conn) {
echo "Unable to connect to DB: " . mysql_error();
exit;
}
if (!mysql_select_db("database_name")) {
echo "Unable to select mydbname: " . mysql_error();
exit;
}
?>
But when I come here: http://vclclan.info/serverlist/serverxml.php
It does not seem to work, giving me this error:
XML Parsing Error: syntax error
Location: http://vclclan.info/serverlist/serverxml.php
Line Number 4, Column 1:no result!
^