Lord of the Rant. Formerly turtle2472
Join Date: Mar 2005
Location: Upstate South Carolina
|
If I were to create and index file with this content, what would it be? (.html or .php or other)
[PHP]<?php
$ip = "$REMOTE_ADDR\n" ;
$banip = '/home/kellyint/public_html/ban-ip/ban-ip.txt';
$fp = fopen($banip, "a");
$write = fputs($fp, $ip);
fclose($fp);
?>[/PHP]
|