Breaking line in .htaccess
Posted on 2007-03-29
how can I break the link with this code? I tried to include \n but it doesn't work. The code will write to .htaccess file.
$ip = "deny from $REMOTE_ADDR\n" ;
$banip = '.htaccess';
$fp = fopen($banip, "a");
$write = fputs($fp, $ip);
.htaccess file output, it cannot break the line in between "deny from 22.214.171.124"
allow from all
deny from 126.96.36.199deny from 4188.8.131.52deny from 6184.108.40.206