password protecting PHP includes??
I am wondering — is there a way to password protect included PHP files?
Here’s the situation: I have a WordPress page. In that page I have some php code (using the “phpcode” plugin) and an “include” to include another PHP file.
I have password protected this page. However, the included PHP file (where the confidential info actually resides) does not retain the password protection. So any web browser could go to the URL of the included PHP file and run it, no problem.
Is there any way to pass on the password-requirement status from a page into an included PHP file?
I realize this is weird and sorta advanced, any help is much appreciated!
dylan in st. louis
- The topic ‘password protecting PHP includes??’ is closed to new replies.