- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Counters
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 03:54 AM
07-28-2003 03:54 AM
Counters
Kyle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 03:58 AM
07-28-2003 03:58 AM
Re: Counters
Hit for what ? Web site ? In php ?
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 04:00 AM
07-28-2003 04:00 AM
Re: Counters
Yes we have a program that throws data reports and puts them on a web page. I'd like to see how many people access this page. Currently the counter going now has this code:
-------
I'd like to get it back to Zero, but I don't see how to set it back to Zero. Thanks
Kyle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 04:08 AM
07-28-2003 04:08 AM
Re: Counters
Try searching for instructions in you web-counter provider site.
hth
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 04:15 AM
07-28-2003 04:15 AM
Re: Counters
AS you are not controlling the variables used to increment the counter, digits.com does, then you have to ask them to reset it to 0, or do it from your control panel in their site. It's explained at :
http://www.digits.com/faq.html#Change
Use this access page, you should be able to do it from there :
http://www.digits.com/change.html
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 04:21 AM
07-28-2003 04:21 AM
Re: Counters
Easily inserted into a web pag.
This is for your referece though you could display the results as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 04:47 AM
07-28-2003 04:47 AM
Re: Counters
$FP = fopen ($filename,'r') or exit("unable to open counter file");
$count = (int) fread ($FP, filesize($filename));
fclose($FP);
$FP = fopen($filename,'w+') or exit("unable to open counter file");
echo "Count is $count";
++$count;
echo "Count is $count";
if(!fwrite($FP, $count)) {
exit("unable to write to counter file");
}
?>
a small php file.
to make this work, do this first.
echo 0 > count.txt
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 12:19 PM
07-28-2003 12:19 PM
Re: Counters
The only problem with the code of Balaji
is that if you will have two requests in
the same time than you will have problem.
What you need to do is also add a ability
when you work on the file to do a lock that
the other will wait.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-29-2003 03:06 AM
07-29-2003 03:06 AM
Re: Counters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-29-2003 08:42 AM
07-29-2003 08:42 AM
Re: Counters
-balaji
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP