Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



help to know php counter script.

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-04-2011
Member
 
Join Date: Feb 2011
Posts: 77
help to know php counter script.
  

I tried to install a counter script that shows the number of page on my website. The website is in php and I am using mysql as database to store items that may occur on the site. I've tried several different counters that have been used to "include" command that includes the script on the page, in my case content.php. Tell me about the counter in PHP.

Reply With Quote
  #2  
Old 02-04-2011
Member
 
Join Date: May 2009
Posts: 523
Re: help to know php counter script.

I would let you know if you are not actual programmer You can have DRBCounter hit counter that is a simple PHP script that does not require a database. It allows you to put a visitor counter text based on almost any page of your website. You can modify the colors and fonts using the CSS standard. The data is stored in flat files, so no database is essential. You just have to copy it from php official website. Use include function to work.
Reply With Quote
  #3  
Old 02-04-2011
Member
 
Join Date: Apr 2009
Posts: 483
Re: help to know php counter script.

PHPCounter is a Web script, real-time that can track an unlimited number of pages with a hyphen. Features: View all results, see the list of monitored sites rated by popularity, get statistics on visitors' browsers, operating systems, countries, relating to, the winning days, hours of fondle. Find out which search strings refer guests. Text and graphic production and invisible tracking. You can begin including at any digit and can routinely rotate logs. wires CLF and NCSA record formats.
Reply With Quote
  #4  
Old 02-04-2011
Member
 
Join Date: Apr 2009
Posts: 567
Re: help to know php counter script.

Well, if I understand the right description, only has the page-based storage is exaggerated. Or you need to find a script that supports count on the basis of a user-defined variable passes, or modify one to suit your needs. So instead of having a ticket to content.php in its database, individual entries would article.1, article.2, etc. Must be a relatively trivial modification to the counter. Start with the database that stores the counter data, and go from there. Also, if your forum gets a lot of traffic and is using the string 'article.1' as your key, which must be properly indexed or run the risk of performance hits every time you do that query.
Reply With Quote
  #5  
Old 02-04-2011
Member
 
Join Date: May 2009
Posts: 532
Re: help to know php counter script.

Couter scritp look like this shown below.
<?php
$myfilename = "aaa.txt";
$counter= file($yourfilename);
$counter[0]++;
$file11 = fopen ($yourfilename, "w") or die ("could not find $yourfilename");
fputs($file11, "$counter[0]");
fclose($file11);
echo $counter[0];
?>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "help to know php counter script."
Thread Thread Starter Forum Replies Last Post
Does Counter Strike: Global Offensive uses the Counter Strike: Source? Sutti Video Games 3 10-02-2012 11:34 PM
Is there any way to migrate Counter-Strike community into Counter-Strike: Global Offensive successfully Gajagamini Video Games 8 06-10-2011 11:27 PM
maps dissimilarities among counter strike s and counter strike: global offense Pujar Video Games 7 02-10-2011 07:46 PM
Word 2008 + bibfuse: no script in script menu deval4u Software Development 5 06-04-2009 12:53 PM
Problem with script in order to open another script in an extra window Samsher Software Development 2 14-01-2009 12:25 PM


All times are GMT +5.5. The time now is 08:53 PM.