Hello,
I'm trying to setup a HLStatsX website for a new TF2 server, however I'm having some issues with the webpage part of the setup. Daemon, databases and gameserver plugins are working fine (stats and ranks are logged) but webpages are totally blank, no errors, no stats. I have turned error reporting on and I have tested that it works with other php scripts.
I have also checked all apache logs (error-log and access-log), nothing. I have managed to get the hlstatsx server work under a different server earlier.
I have also tested mysql connection with simple php scripts and it worked.
Code:
<?php
$mysqli = new mysqli("localhost", "testuser", "testpass", "testdb");
/* check connection */
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
/* check if server is alive */
if ($mysqli->ping()) {
printf ("Our connection is ok!\n");
} else {
printf ("Error: %s\n", $mysqli->error);
}
/* close connection */
$mysqli->close();
?>
I'm quite sure that I'm missing something from my php setup. I'm running php version 5.5.14 and my server is running Arch Linux. I have googled for solutions many hours, and I have not found anything to solve this issue. I'm running out of ideas.
halp