<?php $wantcount = true; $counter_file = "counter/counter.txt"; if($wantcount){ if (file_exists($counter_file) and is_writeable($counter_file)){ $fp = fopen($counter_file,"r+") or die("Read File Error !"); $count = fread($fp, filesize($counter_file)); fclose($fp); $fp = fopen($counter_file,"w+") or die("Write File Error !"); $count +=1; $count =$count; fputs($fp, $count); fclose($fp); echo "$count"; } } ?>
<?php session_start(); $wantcount = true; $counter_file = "counter/counter.txt"; if($wantcount){ if (file_exists($counter_file) and is_writeable($counter_file)){ $fp = fopen($counter_file,"r+") or die("Read File Error !"); $count = fread($fp, filesize($counter_file)); fclose($fp); if(!isset($_SESSION["First"])) { $fp = fopen($counter_file,"w+") or die("Write File Error !"); $count +=1; $count =$count; fputs($fp, $count); fclose($fp); $_SESSION["First"] = "1"; } echo "$count"; } } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง