Re: Seeking recommendations for use of include()
| From: | Dave M G | Date: | Wed, 14 Jun 2006 02:17:28 +0000 |
| Subject: | Re: Seeking recommendations for use of include() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237943@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
The problem with making it dynamic, is that you've just made it AWFULLY easy for some Bad Guy to inject their own PHP file into your system... Think about that for awhile. I have thought about it, and I can only see it as possible if the person already has the ability to write PHP scripts into my directory. If they can do that, then the damage is already done and they don't need to bother with slipping the name of their file into my include() functions. They could just write a script and then execute it from the browser directly.If there is some other way for them to exploit a dynamic include() function, then please let me know. -- Dave M G