sashwat kumar padhy wrote:
K. Tsang wrote:Just how are you planning to distinguish yourself from everyone else?
Actually i could use ALLOW FROM xxx.xx.xx.x(my ip adress) but i don't have a static ip. So is there any way to use php,so that it can automatically get the current ip and set it in the .htaccess?
If you could get the IP it's most likely the internal router IP (192.168.x.x) rather than the public router IP. Once you have your IP, I don't think you can "dynamically" change the .htaccess file.
Actually what do you want to do exactly? Reading the content of the .htaccess file? Browsing the files in directory?
If it is the latter, then you can simply write a PHP script and the .htaccess file is not needed at all.