|
Posted by Jerry Stuckle on 05/04/06 15:46
techjohnny@gmail.com wrote:
> 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.
>
> How?
>
> Thanks,
>
> --TJ
>
TJ,
PHP is executed server-side, not client-side. If your host is properly
configured, there is no way anyone can see your PHP code.
If the server is configured improperly, you have a problem. Dana's suggestion
will work in this case - they won't be able to see anything besides the include
statement.
But is it worth the extra hassle and maintenance? I do this for critical files
such as ones containing passwords. But not the every-day files.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|