Joshua F Posted September 21, 2010 Share Posted September 21, 2010 Hello, I am making a Status Page for servers in general. It has Uptime(In %) and Status(Online/Offline). I have a database it loads this from, (Failed, Success, and Status) Here's an example of how it works. Failed = 0 Success = 1 Php code calculates the uptime, and prints 100% Status = 1 Status: Online What I am trying to do, it make the site run through Hosts and Ports at the same time, and update the databases with the updated info. Example It updates, and Google was offline. Failed = 1 Success = 1 Calculates the uptime to 0% Status = 0 Status: Offline Any way of doing this easily, because this will be something I might release to the public, and I want it user friendly. P.S. This is will be using fsocketopen. Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/ Share on other sites More sharing options...
Mod-Jay Posted September 21, 2010 Share Posted September 21, 2010 No Replys For Joshhhh? Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113654 Share on other sites More sharing options...
ram4nd Posted September 21, 2010 Share Posted September 21, 2010 So what is your question? What is it exactly that you need? Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113800 Share on other sites More sharing options...
Joshua F Posted September 21, 2010 Author Share Posted September 21, 2010 I'm asking how to make a script tha will run every 5 mins or so, or something that does that, and is user friendly, and will check to see of the server is online or not. Which it will get the host and the port from the database, and will update the database with the new info. Sorry if that's confusing, I just typed this on my phone. Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113804 Share on other sites More sharing options...
rwwd Posted September 21, 2010 Share Posted September 21, 2010 I'm asking how to make a script tha will run every 5 mins or so Google "Cron Job" and see if that's what you mean, from the description that'll float your boat - assuming that you are on a host server and not a localhost scenario. Rw Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113813 Share on other sites More sharing options...
Joshua F Posted September 21, 2010 Author Share Posted September 21, 2010 I test and develope on localhost. Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113818 Share on other sites More sharing options...
rwwd Posted September 21, 2010 Share Posted September 21, 2010 Batch file? if it's only to run a script every 5 mins, that could help? I must confess though I don't know how to write one, but I know they would just use command line requests... Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113837 Share on other sites More sharing options...
Joshua F Posted September 21, 2010 Author Share Posted September 21, 2010 There must be a way, if cron jobs are the only way, I can upload to my host and test it over that, but I wouldn't know anything about them. I would need help with setting up a script for it to run. Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113841 Share on other sites More sharing options...
rwwd Posted September 21, 2010 Share Posted September 21, 2010 It's kinda self explanatory, I would just check through your control panel to see if they offer that feature, I just checked mine, and it comes under 'advanced features', (I use Direct Admin) then you just select the script you want to run, and the interval you wish to run it at, and how often.. Simple!! Rw Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113843 Share on other sites More sharing options...
Joshua F Posted September 21, 2010 Author Share Posted September 21, 2010 Yea, it has it. But I wouldn't have a clue on how to aero the script. Link to comment https://forums.phpfreaks.com/topic/213958-auto-update/#findComment-1113848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.