Formda Zorunlu Alan (php)

if ( ! isset($_POST[‘zorunlu1’]) && $_POST[‘zorunlu2’] && $_POST[‘zorunlu3’] && $_POST[‘zorunlu4’]) { //zorunlu alanlar doldurulmadıysa forma geri dönülecek header(“Location:http://www.example.com/form.php”); } else

Devamı..

PHP De IP Banlamak

PHP De IP Banlamak $ip = $_SERVER[‘REMOTE_ADDR’]; // Banlamak istediğiniz IP’leri IP.txt dosyasının içerisine yazınız $ipArray = preg_replace(“#\r\n?|\n#”,””,file(‘IP.txt’)); foreach ($ipArray

Devamı..