Final Fantasy Republic Forums  
 Home | Forums | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
     
    
        
     
 
Final Fantasy Republic Forums  
Username:

Password:
CAPTCHA:
  
        
Closed Thread
 
LinkBack Thread Tools Display Modes
  Solid
 
 
Solid's Avatar
Registered User
 
Posts: 387
 
Reg: May 05 2002
 
ID: 742
 
RP: 0
 
Final Fantasy,Golden Sun
Avril Lavigne
SpiderMan
I don't like to read
Ps 2
     
 
Default  Users ONline Script
12.19.02, 03:15:43
  Post #1 (permalink)
 
     

Hey..can someone attach or give me the link to get Useronline script or visitor currently on the website script..PHP script plss...
______________________________________

Visit the home for extreme experience in final fantasy!!

Final Fantasy eXtreme
Send a message via AIM to Solid   Solid is offline
View Solids Profile! Find more posts by Solid! Visit Solids Homepage!  
  rake
 
 
rake's Avatar
Sorceror|Supreme
 
Posts: 1,269
 
Reg: Jan 15 2002
 
ID: 4
 
RP: 0
 
None
None
None
None
     
 
Default  12.19.02, 07:38:17
  Post #2 (permalink)
 
     

Try hotscripts.com. I'm sure you'll find something useful.
______________________________________


Send a message via ICQ to rake Send a message via AIM to rake   rake is offline
View rakes Profile! Find more posts by rake! Visit rakes Homepage!  
  Solid
 
 
Solid's Avatar
Registered User
 
Posts: 387
 
Reg: May 05 2002
 
ID: 742
 
RP: 0
 
Final Fantasy,Golden Sun
Avril Lavigne
SpiderMan
I don't like to read
Ps 2
     
 
Default  12.19.02, 11:56:26
  Post #3 (permalink)
 
     

I did..but i tried 3 of them..NONE working..
Send a message via AIM to Solid   Solid is offline
View Solids Profile! Find more posts by Solid! Visit Solids Homepage!  
  Pocketx
 
 
Pocketx's Avatar
Registered User
 
Posts: 966
 
Reg: Jul 31 2002
 
ID: 1634
 
RP: 0
 
NBA 2k Series
Eminem
8 Mile, Rush Hour Series
Dreamcast
     
 
Default  12.19.02, 16:54:49
  Post #4 (permalink)
 
     

Contact me if u need help

PHP Code:
<?php 

$server 
"xxx"
$db_user "xxx"
$db_pass "xxx"
$database "xxx"
$timeoutseconds 300

$timestamp time(); 
$timeout $timestamp-$timeoutseconds

mysql_connect($server$db_user$db_pass); 
$insert mysql_db_query($database"INSERT INTO useronline VALUES ('$timestamp','$REMOTE_ADDR','$PHP_SELF')"); 
if(!(
$insert)) { 
 print 
"Useronline Insert Failed > "

$delete mysql_db_query($database"DELETE FROM useronline WHERE timestamp<$timeout"); 
if(!(
$delete)) { 
 print 
"Useronline Delete Failed > "

$result mysql_db_query($database"SELECT DISTINCT ip FROM useronline"); 
if(!(
$result)) { 
 print 
"Useronline Select Error > "

$user mysql_num_rows($result); 


mysql_close(); 
if(
$user == 1) { 
 print(
"<b>$user</b> user online\n"); 
} else { 
 print(
"<b>$user</b> users online\n"); 


?>
That is the script. Place is somewhere on ur site our create a online.php page and then include it

But not done, you have to create a mysql table

PHP Code:
CREATE TABLE useronline 
   
timestamp int(15) DEFAULT '0' NOT NULL
   
ip varchar(40NOT NULL
   
file varchar(100NOT NULL
   
PRIMARY KEY (timestamp), 
   
KEY ip (ip), 
   
KEY file (file
); 
Note: Replace the xxx in the script above with the real mysql information
  Pocketx is offline
View Pocketxs Profile! Find more posts by Pocketx! Visit Pocketxs Homepage!  
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Star Wars Galaxies:An Empire Divided Pre New Era Gaming Coliseum 0 03.22.03 11:50:58
Online PC Gaming Knives Gaming Coliseum 8 09.10.02 17:06:14
Console Online War (and what online game u looking forward to) Zelnaga Gaming Coliseum 14 07.19.02 02:57:36
Real Life Friends & Online Friends Nojiko Costa del Sol 24 06.19.02 21:20:09
Great News From Sony - Full Article Nojiko Gaming Coliseum 15 05.11.02 08:17:16