Jump to content

Is this possible... coding .htaccess with php?


brianjw

Recommended Posts

Many apologies if this is the wrong place to post this!

 

I am not sure but is it possible to make like a page where you can add bans to the .htaccess without FTP and editing the file. Just a little page that will direct it to .htaccess?

 

I am thinking out loud here so bare with me. Let me know. :) If not php, maybe other languages?

yes I just wrote this into my cms like 5 minutes ago lol

 

The thing you can not do (at least I think) is have a php file actually dynamically run the .htaccess file.  Meaning pull it from a database and ehco it out on each page request.

 

But realistically you can use file handlers as stated above to open the .htaccess file and then use fwrite to save the changes.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.