473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Invisible hit counter in php

250 100+
I want to put invisible hit counter to multiple pages of web site. I put visible counter like follow. There is a text file which is use to save counts. and there is a php file including the following code.And finally I put echo
Expand|Select|Wrap|Line Numbers
  1. echo $hits[0]; 
to display the hits. Now I want to invisible these hits and also add to multiple pages. Surf the internet and didn't find a answer to my problem. Could some one plese help me...

counter.php
Expand|Select|Wrap|Line Numbers
  1. $count_my_page = ("hitcounter.txt");
  2. $hits = file($count_my_page);
  3. $hits[0] ++;
  4. $fp = fopen($count_my_page , "w");
  5. fputs($fp , "$hits[0]");
  6. fclose($fp);
  7.  
Apr 22 '10 #1
4 3430
Dormilich
8,658 Expert Mod 8TB
what about just not doing the echo?
Apr 22 '10 #2
ghjk
250 100+
But then admin have to access the web folder to check it.
Apr 22 '10 #3
Dormilich
8,658 Expert Mod 8TB
what else is the purpose of an invisible counter?
Apr 22 '10 #4
ghjk
250 100+
only admin should see it. I found the solution. just I check the access level and show the hit counter.
Apr 22 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

41
by: Mr. x | last post by:
Hello, Can I make my java script code be invisible to other people who enter into my site by IE browser ? - How ? Thanks :)
10
by: Cy | last post by:
I've had good luck with posting in the past, so we'll see how things go this time...:) I have an Access 2000 form. On the form is about 40 objects. I want to set everything to invisible,...
3
by: Jose_Csharp | last post by:
Hi guys, I´m trying to make a startup invisible form. I don´t want a form with Opacity property 0. First I did the property Visible of the form to false. It wasn´t a good idea, was too easy. Then...
1
by: austriaman | last post by:
Thanks for viewing this thread! I'm currently trying to create an invisible counter that also keeps track of IP-addresses. Any well elaborated counter-tutorial? Thanks for your help! ...
1
by: beihotmailanmelden | last post by:
Hello, here's the situation: I have a banner on a third party page that, if you click on it, links to another third party page. I cannot install a counter on that thirdparty page. Is there...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
3
blackstormdragon
by: blackstormdragon | last post by:
Here were our instructions: "My mother always took a little red counter to the grocery store. The counter was used to keep tally of the amount of money she would have spent so far on that visit to...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
5
by: my.shabby.sheep | last post by:
Hi, I want to do the following. I want to make a table column invisible to the screen, but I still want to be able to get the innertext that would have been stored in the cell for certain...
5
by: Andy B | last post by:
I have 2 TextBoxes and an Add button on a page. When the user fills in the TextBoxes, the values are added to a dataset table. When the page gets done reloading, the TextBoxes are turned into...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.