//عدد 10 طول پسورد را مشخص می کند
$password=substr(md5(time()),0,10);
<?php
//آمارگیر + زخیره ای پی در یک فایل (فایل متنی باید از قبل درست شده باشه
$filename = "hits.txt" ;
if(!file_exists($filename)){
$fd = fopen ($filename , "w+");
fclose($fd);
}
$file = file($filename);
$file = array_unique($file);
$hits = count($file);
echo $hits;
$fd = fopen ($filename , "r");
$fstring = fread ($fd , filesize ($filename)) ;
fclose($fd) ;
$fd = fopen ($filename , "w");
$fcounted = $fstring."n".getenv("REMOTE_ADDR");
$fout= fwrite ($fd , $fcounted );
fclose($fd);
?>