Hello,
i just have a quik question.
i want to use htaccess and fopen to place bans..
in my php script i have...
$fp = fopen ("/var/www/html/.htaccess", "r+");
so when the script is executed it opens the htaccess file for read+(write)
here is what the htaccess file looks like.
<LIMIT GET PUT POST>
order allow,deny
allow from all
deny from 111.111.111.111
</LIMIT>
so i want it to add the users IP after 111.111.111.111 but it must be before </LIMIT>
so how can i get my php script to insert it before the </LIMIT> but after the line that says. "allow from all"
any tips on coding this or if someone could lead me to a website with info on doing this, i would be greatful.
Regards
ryza