Hello People,
im running into a small problem getting a peice of code in my application to write data to the htaccess file.
example
// ok lets open the htaccess file for writing
$handle = fopen('/home/test/public_html/.htaccess', 'a');
$test = '127.0.0.1';
// lets write the IP to the access file
fwrite($handle,$test);
// close the file for writing
fclose($handle);
this will not write the test IP to the htaccess file at all.
Im trying to get this code to write data to the end of the file on the very last line.
Thanks for any help