PDA

View Full Version : Need help for implementing Total Users and Active Users in an html page


01-15-2001, 07:28 AM
Like the topic says.

I'd like to be able to do this using Server Side Includes... The page I need it on is a plain html page and I'd rather not have php or mySQL involved (as little as possible that is)..

I took a look at the other thread in this forum and I was pretty much left feeling confused.

The easiest way to do this please.. :)

Thanks a lot,
Slip

01-15-2001, 11:20 AM
The easiest way to do this is through PHP and MySQL. If you want to use server side includes you would have to write a script in PHP or PERL DBI that accessed the database and wrote the numbers out to a text file on a regular basis.

01-15-2001, 01:47 PM
actually a little known fact about php, is that you can include it via SSI, and its parsed properly.

meaning you can write little 'panels' and include them via SSI.

im working on one right now, you can take a look @ it, at http://www.tribalwar.com/forum_index.shtml (shhh :))

as you can see, its a .shtml page, and ive got PHP SSI'd in, and its working properly.

you just cant pass it arguments the same way.

edit: you'll have to register, unfortunately. make sure though, you check the bottom two settings to see it working fully.

edit #2: its the my TW part. first panel, left nav bar.

01-15-2001, 11:13 PM
Is there anyway I could see your HTML code for that? You can contact me at emblem7@aol.com.

(I wouldnt like steal your page or anything, I just really like how you set that up.)

01-16-2001, 12:59 AM
View/Source
:p

01-16-2001, 01:16 AM
what is the SSI ur using to get it in?

01-16-2001, 02:55 AM
<> = ()

(!--#include virtual=/file.php --)