这是一个用SESSION做的图形计数器,用户登录后,计数器加一,只有关闭浏览器重新打开时才会加一。
// 用SESSION写的计数器,
session_start();
if (session_is_registered(count)==false){
while(($fp=fopen("counter.txt","r+"))==false);
while(flock($fp,3)==false);
$count=fgets($fp,255);
$count+=1;
fseek($fp,0);
fputs($fp,$count);
fclose($fp);
session_register(count);
}
$len=strlen($count);
for($i=1;$i{
$imagpath="" ; //TEMP为图像文件夹,图像文件名需为0.GIF.....9.GIF
}
for($i=1;$i{
$imagpath.="";
}
print"你是第".$imagpath."位来客";
?>

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

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

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.