0
I was wondering if there is any way to change . htaccess via php.
An example of what I want is that by htaccess I can restrict the access of a certain ip with the command:
deny from 67.114.135.60
If I wanted to "unlock" user access via php (in an administrative area for example), without having to tinker with the file itself, I would have this possibility via php?
file_get_contents()
to read the file,file_put_contents()
to write in the archive– Daniel Omine
Yes, but how could you use these commands to remove this line from the Deny command? With file_put_contents() I put content in the file, but to remove?
– DiChrist
is just a hint where you can start. Hands the dough and good luck!
– Daniel Omine
Hehe, I’ll try, but if you can’t, I’ll come back here
– DiChrist