Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Logistics with PHP scripts
Logistics with PHP scripts [message #459646] Fri, 18 November 2011 20:57 Go to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Hey guys,

I'm having a little trouble trying to come up with the most efficient way of creating a PHP script to store information given to it, make it easy to display in formatted HTML, and eventually make the stored information expire and delete after xx seconds.

The situation is, I have made custom Minecraft Classic server software, and it uses a 'heartbeat' system to update a few global server lists. These are basically URL's formatted in a way that variables given in the URL are stored as variables in the script, and can be used later.

The URL sent looks a little something like this:
http://hawkserv.co.uk/heartbeat.php?port=25565&max=32&name=My%20Server&public=True&version=7&salt=wo6kVAHjxoJcInKx&users=0

Submitting that URL works fine, and I've set the script to display a page where the data is formatted in a table and displayed, and this would work well for just one server, however there will be multiple servers pinging this script every 45 seconds.

My goal is to create a script that takes the information from URL's formatted as above, and stores the information so it an be used when a user navigates to a HTML page. This script must be able to store multiple arrays from multiple server submissions for them to be displayed as a list. The script must also delete arrays that are not updated after xx seconds, to prevent overflows and collisions. D:

My knowledge in PHP is basic at best, and although help would be great, I'm looking more into the way it can best be done.

Any help would be greatly appreciated, and names will be credited.

Thanks,


Zion
Re: Logistics with PHP scripts [message #472222 is a reply to message #459646] Wed, 25 July 2012 08:18 Go to previous messageGo to next message
iScripters is currently offline  iScripters
Messages: 27
Registered: January 2007
Karma: 0
Recruit
I'm thinking Databases. Storing the information in a MySQL database would be the easiest way to go.
Re: Logistics with PHP scripts [message #472239 is a reply to message #472222] Thu, 26 July 2012 01:14 Go to previous messageGo to next message
iScripters is currently offline  iScripters
Messages: 27
Registered: January 2007
Karma: 0
Recruit
lol, didn't realize this topic is 8 months old Very Happy
Re: Logistics with PHP scripts [message #472241 is a reply to message #472239] Thu, 26 July 2012 03:24 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
iScripters wrote on Thu, 26 July 2012 11:14

lol, didn't realize this topic is 8 months old Very Happy


you did forget to say bump Wink


Creator of Mutant Co-Op
Developer of LuaTT

[Updated on: Thu, 26 July 2012 03:24]

Report message to a moderator

Re: Logistics with PHP scripts [message #477247 is a reply to message #459646] Fri, 23 November 2012 20:46 Go to previous message
BAGUETTE is currently offline  BAGUETTE
Messages: 620
Registered: June 2010
Karma: 0
Colonel
Xml fileeeeeeeeeeeeeeee

nvm im fking retarded didnt see the date


Quote:

Ramb8(to RamBonerUpAss) fuk u big ashole u a big jakass i stick my ramboner up u as

http://i97.photobucket.com/albums/l234/Vultima/hue.png

Crush gives away med tanks like he gives away handjobs, everyday and as much as possible

[Updated on: Fri, 23 November 2012 20:46]

Report message to a moderator

Previous Topic: CNC HELP
Next Topic: Sound will work in everything except for renegade help
Goto Forum:
  


Current Time: Sat Apr 13 21:25:51 MST 2024

Total time taken to generate the page: 0.02108 seconds