|
Posted by Dana Cartwright on 05/04/06 05:30
<techjohnny@gmail.com> wrote in message
news:1146702356.443577.31560@v46g2000cwv.googlegroups.com...
> Hello:
>
> I have a form that processes a script upon submission. The script is
> on the local server, but is accessible through a web browser. I'd like
> the user to be able to submit a form and process the script, but not
> see the contents of the script.
>
> http://www.form.com/form.htm -> submit -> processes
> http://www.form.com/process1.php
>
> I want to be able to store the .php script outside of the Web Root.
OK, so store it outside, let's say it's called "outside.php", and then put
your "http://www.form.com/process1.php" file where it has to be to work, and
make it a single line:
include( '../outside.php' );
(or whatever path is appropriate).
Note that this does not in any way improve your security, which I imagine is
your goal. I'm just suggesting a way to accomplish your stated objective.
-Dana
[Back to original message]
|