View Single Post
  #1 (permalink)  
Old 2005-07-12, 12:46 PM
cardine cardine is offline
Junior Member
 
Join Date: May 2005
Posts: 26
cardine
Default

How do you export a variable value into a text document. I'm trying to write a code where you import the text document (using this code):
Code:
$file='/home/user/userlist.txt';
$self=$_SERVER['PHP_SELF'];
. Then based on it's value, it shows text. Then it adds 1 to the value of the variable, and it exports it back to the text file. What I'm trying to do is make a counter, and depending on the number of visitors it will say something different. Can somebody help me out on the exporting variable rule (and tell me if my importing rule is correct?)

Thanks!
Reply With Quote