Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
statistics of the website please help
Old 09-30-2004, 03:27 AM statistics of the website please help
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Hello guys
please tell me a script that can give the statistics of the site how to count the nuber of visitors or hit to the website using php ofcourse
any help is appricieted
or tell me where can i find the script
I want it free
Thanx
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
 
Register now for full access!
Old 09-30-2004, 04:22 AM
kisk's Avatar
Extreme Talker

Posts: 161
Location: skynet
Trades: 0
there are TONS of counter and statistic scripts out there. Try:

http://hotscripts.com/PHP/Scripts_and_Programs/

look under "Counters" & "Web Traffic Analysis"


__________________________
T-Shirts
kisk is offline
Reply With Quote
View Public Profile Visit kisk's homepage!
 
Old 09-30-2004, 02:44 PM
labintador's Avatar
Skilled Talker

Posts: 96
Trades: 0
I made simple counter for you, this is wht i use with my pages.

Code:
<?php

   $hits=NULL;

   $file=fopen("hits.txt","a+");
   $hits=fgets($file);
   $hits=$hits+1;
   
  $file=fopen("hits.txt","w");
   fputs($file,$hits);
   fclose($file);
   echo $hits;

?>

Last edited by labintador; 09-30-2004 at 02:48 PM..
labintador is offline
Reply With Quote
View Public Profile
 
Old 10-01-2004, 03:22 AM
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Thanx labintador but I don't want to show the number of hits in the page
I want to check it out lateron from may be some other page
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
Old 10-01-2004, 01:54 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
Edited labintador code:

Your web pages:
PHP Code:
<?php

   $hits
=NULL;

   
$file=fopen("hits.txt","a+");
   
$hits=fgets($file);
   
$hits=$hits+1;
   
  
$file=fopen("hits.txt","w");
   
fputs($file,$hits);
   
fclose($file);
?>
Your stats viewing page:
PHP Code:
<?php

   $hits
=NULL;

   
$file=fopen("hits.txt","a+");
   
$hits=fgets($file);
   
fclose($file);
    echo 
$hits;
?>
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 10-01-2004, 02:03 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
Trades: 0
This is what I use on my site:

http://www.curve2.com/trackpro.php
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 10-02-2004, 02:38 PM
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Helooooooooooooow gus
I suppose \above scripts are aa to reyurn it to the p0age being vieweed plz I want itt for my iwn viewing
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
Reply     « Reply to statistics of the website please help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24215 seconds with 12 queries