Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
All you need to make this work is echo “1″ into a file called counter and ensure the web user has write access. For example: $ echo 1 > counter; chmod 777 counter;
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
<?php $fh=fopen(“/tmp/counter.txt”, “r”); $cnt=fread($fh,filesize(“/tmp/counter.txt”)); fclose($fh); $fh=fopen(“/tmp/counter.txt”, “w+”); if(fputs($fh,($cnt+1))) { print(“You are visitor: $cntn”); } fclose($fh); ?>
|
Leave a Reply
You must be logged in to post a comment.