RTFM
int mysql_get_server_info ( [resource link_identifier])
means you MUST set a connection resource for it to work
<?php
$link = mysql_connect("localhost", "username", "secret")
or die("Could not connect");
print ("Connected successfully");
mysql_close($link);
?>
Run that and see what it generates.