codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  hello! i have a problem  melocoil at 23:11 on Thursday, December 14, 2006
 

hello,

i use this code

open (TXTFILE, "data/Adver/adver.db");
$shows = <TXTFILE>;
close(TXTFILE);

$shows++;

open (FILE, ">data/Adver/adver.db") ;
print FILE $shows;
close (FILE) ;

evrey few minutes thie file is rest from zero.
this code is work, i use this code fot counter in my site.

i need help. mattan

  Re: hello! i have a problem  mmarab at 08:28 on Monday, December 18, 2006
 

Hi,

I dont fully understand what the problem is, if you re-word your question i may be able to help. I can see from the code what you are trying to achieve, i think a website hit counter. You would probably be better off using the one file, incrementing the variable and updating the file.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: need help!!!
•  Connecting to an https server using NNTP perl
•  Is there an ADMIN!!!!! Is this place maintained!
•  small question
•  Re: Text to Speech Converter
•  Re: Multithreading question
•  Re: This forum sucks.
•  Re: Appending to a file
•  Re: Problems with mkdir


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006