|
|
|
ช่วยแก้ error หน่อยค่ะ $line)งมากเลยค่ะ หาจุดแก้ไม่ได้ ช่วยแก้ error หน่อยค่ะ |
|
|
|
|
|
|
|
$line) { //echo $line; $firstPos = strpos($line,'"'); $secPos = strpos($line,'"'); $ddate = substr($line,$firstPos+1,($secPos-$firstPos)-2); //echo $ddate; //echo $DeleteLength; break; } $dat = date('d'); //echo("
".$dat); $rip = $_SERVER['REMOTE_ADDR']; if($dat != $ddate) { //To write in to $open2 = fopen($file1, "w"); fwrite($open2, "DATE= \"$dat\""); fwrite($open2, "\n\n$rip"); fclose($open2); if($count1 > $dummy){ //?????????????????????????? $open = fopen($file, "w"); fwrite($open, $count1); fclose($open); $count = $count1; //??????????????????? $open3 = fopen($file2, "w"); fwrite($open3, $count1); fclose($open3); $count = $count1; }else{ //????????????? ??????????????????? ?????? ???????? count.txt ?????????????????????????? $open = fopen($file, "w"); fwrite($open, $dummy); fclose($open); $count = $dummy; } } else { $open2 = fopen($file1, "r"); $size = filesize($file1); $ips = fread($open2, $size); if(strpos($ips,$rip)) { if($count1 <= $dummy){ $open = fopen($file, "w"); fwrite($open, $dummy); fclose($open); $count = $dummy; } } else { if($count1 > $dummy){ //?????????????????????????? $open = fopen($file, "w"); fwrite($open, $count1); fclose($open); $count = $count1; //??????????????????? $open3 = fopen($file2, "w"); fwrite($open3, $count1); fclose($open3); $count = $count1; //????????????????? $open4 = fopen($file1, "a"); fwrite($open4,"\n\n"); fwrite($open4, $rip); fclose($open4); }else{ //????????????? ??????????????????? ?????? ???????? count.txt ?????????????????????????? $open = fopen($file, "w"); fwrite($open, $dummy); fclose($open); $count = $dummy; } } fclose($open2); } echo($count); ?>
งงมากเลยค่ะ หาจุดแก้ไม่ได้ ช่วยแก้ error หน่อยค่ะ
Tag : - - - -
|
|
|
|
|
|
Date :
22 มี.ค. 2551 15:36:05 |
By :
kook |
View :
1267 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เมาโค๊ดครับ
|
|
|
|
|
Date :
22 มี.ค. 2551 16:06:31 |
By :
deawx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|