Guest Posted September 14, 2008 Share Posted September 14, 2008 hi i wanted to know how can i put stats of my scripts on website for my MTA:SA Race DD server? how can i put it all in table and present it? i know its possible because people in teamskc.com did it lol thank you Link to comment
Scarface Posted September 14, 2008 Share Posted September 14, 2008 There is a resource given with the pack in the server folder after installation, i think its web admin. Link to comment
Gamesnert Posted September 14, 2008 Share Posted September 14, 2008 hii wanted to know how can i put stats of my scripts on website for my MTA:SA Race DD server? how can i put it all in table and present it? i know its possible because people in teamskc.com did it lol thank you MySQL might work for it, but dunno how... =/ Also you have a few resources, perhaps you can make something out of it. However, your best bet would be MySQL I think... Link to comment
50p Posted September 14, 2008 Share Posted September 14, 2008 If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website. Link to comment
Gamesnert Posted September 14, 2008 Share Posted September 14, 2008 If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website. Only problem I noticed so far was that every attempt of mine with connecting to an external MySQL database crashed the server application... =/ Because normally, I let MySQL connect to "localhost", but connecting to "xxx.xxx.xxx.xxx" failed. (Well, it was an IP or site... Can't remember... =/) So is there something special everyone needs to keep in mind when connecting externally? Link to comment
Simbad de Zeeman Posted September 14, 2008 Share Posted September 14, 2008 No, the server crashes because it cannot connect. That server doesn't allow you to connect. Or the firewall from that server doesn't allow you to connect. Link to comment
Guest Posted September 15, 2008 Share Posted September 15, 2008 If stats are saved in a MySQL then you can connect to MySQL using PHP easily. If you store stats in XML or SQL and if you want to display the stats on an external website, you'd have to create (eg. a PHP) script which connects to the server, gather the data from XML or SQL and return this data to the PHP script. When you get the data back, you can display them on the website. hmm im noob at this whole MySQL and PHP stuff but ill research abit more on this and ill let you know how it went on thank you 50p and also gamesnert Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now