View Full Version : Dynamically editing .htaccess
Hypertext
28-03-2008, 03:53 AM
Is it possible without fopen or do you need to use ftp functions?
Thread moved from design and development by --ss-- (Forum Super Moderator): Please post in the correct section :).
Dentafrice
28-03-2008, 04:04 AM
This is in the wrong forum, there is now a "help" forum.
I am pretty sure this is not possible. the .htaccess is read before the PHP is parsed, due to it being with Apache.
due to this, you not going to be able to edit it dynamicly as it is not parsed as PHP.
You would most likely have to update it manually, with fopen, fwrite (not sure if it will open .htaccess or not..)
Just experiment with it, that is usually the key to everything.
You could always Google: dynamic htaccess php
If anything doesn't want to work, try doing it with PHP's FTP functions.
Hoped that helps!
Hypertext
28-03-2008, 04:31 AM
Ok thanks, also loving the new forum additions =)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.