Geiger-Miller Counter Three Steps to DIY Counter (Part 2)
This article will introduce how to put your own counter on your own mirror site.
I will assume that you have multiple mirror sites as an example. First, insert several new data num and visited in the data table. This will be used on your mirror site. Just change count1.php in the previous article. Just click.
First create a folder count, and put the files you want to use count2.php, count3.php..., for example, take the source code of count2, change count1.php to:
$linkptr=mysql_pconnect("localhost","yourname","password");
mysql_select_db("yourname",$linkptr);
mysql_query("update counter
set visited=visited+1 where num=2",$ linkptr);
$result=mysql_query("select visited
from counter where num=2",$linkptr);
list($counter)=mysql_fetch_row($result);
$counter=sprintf("%05d",$ counter);
for($i=0;$i<5;$i++){
$tmpstr="";
echo $tmpstr;
}
?>
Note: The complete path must be placed in " After completing this step, we create a folder show and put the corresponding files show2.php,
show3.php..., taking show2.php as an example, the source code is written as:
document.write("< a href=http://cnfree.oso.com.cn target=_blank title= China Free Resource Information Alliance >") ;
Note: Don’t forget to put two dots before count, this is the complete path!
Finally, place it at the appropriate location on your mirror site Code:
http://cnfree.oso.com.cn I am at OSO You can replace the space on it with your own!
Okay, everything is OK! Check to see if the counter on your mirror site’s homepage is also displayed? In the next article, I will just introduce some ideas for providing free counters to your site members, which is basically an expansion of the content of this article.
The above has introduced the Geiger-Miller counter DIY three-step process for building a counter (Part 2), including the content of the Geiger-Miller counter. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

Following its high-profile acquisition by Facebook in 2012, Instagram adopted two sets of APIs for third-party use. These are the Instagram Graph API and the Instagram Basic Display API.As a developer building an app that requires information from a

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio
