Server Status Image, suggestions?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Fri Apr 13, 2007 10:46 pm    Post subject: Server Status Image, suggestions? Reply with quote

I just played with php and GD yesterday. GD is pretty nice, here's what I made:

(for some reason the img tags won't display the image, so here's the url:



What do you think? Any information I should add/change?
All the information is dynamic: uptime, server ip, and webserver software/version.

If you're curious, I use an external application to get the uptime (I had developed this method of getting uptime before I knew about abyss's variable for it.

I use file_get_contents() on a url on my other website that outputs my server's IP by using the server 'REMOTE_ADDR' variable. (this is the most reliable way)

And I use the server variable 'SERVER_SOFTWARE' which i cut to a length of 13 characters using substr().


Suggestions/questions are welcomed! Also, if anyone wants the source code, I'd be happy to give you it.


Last edited by rrinc on Sat Apr 14, 2007 12:09 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Fri Apr 13, 2007 11:32 pm    Post subject: Reply with quote

The image wont display at the forum because the URL does not end with .jpg, .png or other image formats.

I wrote a captcha using GD a while ago, currently in use on my page when somebody is trying to register an account.
Back to top View user's profile Send private message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Sat Apr 14, 2007 12:00 am    Post subject: Reply with quote

Awesome, url rewriting.

Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group