Hey. I've been using PHP for a long time, but this is the first time I've had to open/append .htaccess dynamically through a PHP page. Is this possible?
I tried the following, with no avail:
$fp = fopen(.htaccess", "A");
So I then tried this:
$fp = fopen($_SERVER['DOCUMENT_ROOT'] . "/.htaccess", "A");
which also didn't work..
Is there any way to do this? I need to append htaccess commands after a user registers with the system.