Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2004, 02:33 PM
rec rec is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: houston
Posts: 94 rec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 40 m
Reputation Power: 6
Need dirt simple hit counter.

I know this is a topic that is beat to death but I can’t seem to find anything that is basic enough that I can understand how it works (so I can make the necessary changes or adjustments.) I need to make a quick and dirty hit counter. All I want to do is write to a txt file every time the page is loaded. In other words I would have a txt file on the server named “visitors.txt” with one line of text on the page “&visit=1” and I would have a dynamic text box in the flash page (swf) named “visit”. When ever anyone loads the page I need the “swf” page to write to the file “visitors.txt”. Specifically I need it to take the value of “visit” and add “1” to it and return the results to the text box on the flash (swf) page, and I need the value of “visit” to be changed to the new value so that every time the page is loaded the value displayed in the dynamic text box “visit” is 1 greater than the last time the page was loaded.

The problem I am having is that everything I can find on this has so many extra bells and whistles that I lack the expertise to edit it. What I need is something that does just this one thing in as few lines of code as possible.

I have been looking at the fopen approach and it looks promising but again everything I can find so far goes a lot further than I need and at present I lack the expertise to work with it.

I am just learning the php side of this and my approach is to start with the simplest possible code I can get and then from there I can expand on it as needed.


NOTE; I am using Flash MX and really am not familiar with version 4 or 3 actionscript. In other words it may as well be Greek ( I only point this out because I have found a lot of actionscript that is from earlier versions and I don’t understand it because it uses forms / methods / etc. that are not found in any of the material on Flash MX

Reply With Quote
  #2  
Old February 13th, 2004, 09:26 PM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
There is an extremly simple perl hit counter HERE you can use the loadVariables to get the count from the .dat file and remove the print commands at the end. Hope this helps.
__________________
No problem is so complex that it cannot be resolved with the proper use of explosives.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Need dirt simple hit counter.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT