Comprehensive Image counters
--------------------------------------------------------------------------------
Please maintain the integrity of the article
Bytes --------------------------------------------------------------------------------------
<?
// Counter. php All rights reserved http://sports98.126.com
// You can apply for a counter similar to 163 to activate the multi-user service. The [image counter] v1.00 code is free of charge. If you use this code, please ensure that your code is fully published.
$ Counterfile = "./counter country name1_.txt"; // define the data file;
$ Fp = fopen ("$ counterfile", "rw"); // open a data file
$ Usernumber = fgets ($ fp, 8); // retrieve the data file
$ Usernumber + = 1; // calculate data
$ Int_counter = $ usernumber; // separate an operation variable.
$ Int_pan = 10000000; // defines the divisor
For ($ int_b1 = 0; $ int_b1 <= 7; $ int_b1 ++) // this cycle changes the data to the image location for the judgment data
{
$ Int_a [$ int_b1] = $ usernumber/$ int_pan;
$ Int_a [$ int_b1] = intval ($ int_a [$ int_b1]);
$ Int_a_a [$ int_b1] = selectpic ($ int_a [$ int_b1], $ xxxx);/* Note that the function can be omitted for multiple users, use data encryption */
$ Usernumber = $ usernumber % $ int_pan;
$ Int_pan = $ int_pan/10;
}
Echo "<div style =" border: dotted; width: xxx; border-color :$ {rgb}; height: xxx; cursor: hand; "> "; // output data Image framework
For ($ int_la = 0; $ int_la <= 7; $ int_la ++)
{
Echo "$ int_a_a [$ int_la]"; // output data Image
}
Echo "</div> ";
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.