[Help] Uptime

How do you use the forum? Also Technical News.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Forum rules
This forum is NOT a forum where you post a technical questions about osRose, osiRose or ospRose. Use the dedicated forum for that!

[Help] Uptime

Postby Eowis on Sun Jun 08, 2008 9:54 am

Hello,

Anyone know a php script for the Uptime of the server on OsRose ?


Thanks
*Sorry for my bad english*
Eowis
Pomic
Pomic
 
Posts: 103
Joined: Thu May 15, 2008 9:21 pm

Re: [Help] Uptime

Postby Drakia on Sun Jun 08, 2008 10:55 am

This isn't possible unless you change the server to add a value to the database every x seconds that you could query.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: [Help] Uptime

Postby Sethanye on Sun Jun 08, 2008 10:59 am

make a fake uptime lol
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [Help] Uptime

Postby Drakia on Sun Jun 08, 2008 11:16 am

Well, I was thinking update an uptime counter every 60 seconds, then you could just have minute-precision uptime.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: [Help] Uptime

Postby Sethanye on Sun Jun 08, 2008 12:40 pm

yeah but osrose isnt very stable, a fake one will look better lol
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [Help] Uptime

Postby Eowis on Sun Jun 08, 2008 3:26 pm

How to make a fake uptime xD ?
*Sorry for my bad english*
Eowis
Pomic
Pomic
 
Posts: 103
Joined: Thu May 15, 2008 9:21 pm

Re: [Help] Uptime

Postby PurpleYouko on Sun Jun 08, 2008 3:37 pm

Well you could use a php function that reads if the server is online or not then updates a database counter if it is and resets it to zero if it isn't.
No coding needed in the actual server plus you could have your web page based anywhere on the web, not on the actual game server.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: [Help] Uptime

Postby Sethanye on Sun Jun 08, 2008 3:51 pm

actually you could use the same from the cms that checks the server status, its really the same just outcome is not green online but a clock. just minor modifications
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: [Help] Uptime

Postby Rifke on Sun Jun 08, 2008 9:58 pm

You could modify the client slightly and create a file which will be recreated every start. Just a text file. And with PHP you can check when it was last updated (or created). You count the seconds from now until it has been created and you've got your uptime. Or add an extra field to the channels list. Because it's updated everytime the server starts. If you do it like that you can have an easier querry because you can use the DATE_TIME format.
Rifke
Pero pero
Pero pero
 
Posts: 719
Joined: Thu Aug 09, 2007 3:01 pm
Location: Belgium

Re: [Help] Uptime

Postby Eowis on Mon Jun 09, 2008 11:46 am

I am a nooby in php, can you help me to create this script ?
*Sorry for my bad english*
Eowis
Pomic
Pomic
 
Posts: 103
Joined: Thu May 15, 2008 9:21 pm

Next

Return to Some Help / News

Who is online

Users browsing this forum: No registered users and 3 guests

cron