Could anyone help me replace the filename in this little counter code to make it generic so it can be used as an include?
$file = file("hitfront.txt"); $num = ($file[0] + 1); exec("echo $num > hitfront.txt");
only PHP code files can be include()'ed.
or am i missing your question?
The code I use expects me to specify the file to write the counts in, but if I do that I can't use it on other pages as an include without creating a new PHP counter.