Jack McKalling Posted October 1, 2005 Share Posted October 1, 2005 (edited) Hello, good to see you *correction, read*FunLinks is my own site. It can be found here, and is Dutch. Click hereBut it has been shut down for the time being.I want to have a visitor counter, which I have but not implemented on the site yet, and it has a bug to be fixed. Can any one help me with the following? Count = "<?php$txtbestand = "bezoekers.txt";$content = fopen ($txtbestand, "r");$num = fgets ($content, 1000);fclose ($content);echo ($num);?>"It should result as:Count = "7"As for the blue, is some number in file "bezoekers.txt".It leaves the quotes blank :)Ps.: the file that was opened consists of only that number. Edited October 1, 2005 by Dan The Prof Link to comment Share on other sites More sharing options...
alzable Posted October 2, 2005 Share Posted October 2, 2005 Try this: <?php$txtbestand = "bezoekers.txt";$content = fopen ($txtbestand, "r");$num = fgets ($content, 1000);fclose ($content);echo ("Count = " . $num);?> alzable Link to comment Share on other sites More sharing options...
Jack McKalling Posted October 4, 2005 Author Share Posted October 4, 2005 Thank you very much :)This way you helped me thinking about the correct way to compress my php script Link to comment Share on other sites More sharing options...
alzable Posted October 5, 2005 Share Posted October 5, 2005 Thats fine, im always willing :)alzable Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now