Discussion Locked

Beginner Question:Apache +Linux +Updates

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've seen on a few websites, a line at the bottom of the HTML page that shows an output similar to what you'd see from the command "uptime".

When I view the source for the page that information is actually 'hard coded' onto the source, and is not some weird tag or HTML command I've never seen...

Can anyone give me any hints as to how I could do that? I run a small Linux server and it seems like that would be something interesting to show on a system information page.

Thanks,
-Ethan

3 replies

by jeng

What you see is most likely a dynamic web page - self generated from some code behind the scene (on the web server). For example, PHP is a web scripting language that you can use to do such a thing. Take a look over at http://www.php.net

To get an uptime on a web page (via PHP), the command one could use would be:

by eschwartz

Your answer isn't necissarily incorrect, but PHP isn't an option in my case (the powers that be say no)... I was able to write a short CGI script that performed the function...

This discussion is closed to new replies.