wrtls script

For all the help you need with Armagetron!
Post Reply
User avatar
-=VcL.Rajinn
Round Winner
Posts: 242
Joined: Fri Aug 29, 2008 9:35 pm

wrtls script

Post by -=VcL.Rajinn »

Hello all,

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;
}
?>
All seems fine. It is connecting, if not it would show an error here: http://vclclan.info/serverlist/connect.php

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!
^
Image
Post Reply