I have read that it is a good idea to protect your processing scripts outside of the document root. Okay so once you do that how to you submit forms to their processing scripts if they are contained in a directory outside of the document root?
I am playing with the php include and require function to include .inc and .tpl files that are contained in directories that are outside of the documet root into the main webpages that are IN the document root. This is working fine in, but i still I am not sure how to get forms to submit to the proper scripts.
I tried something like this :
<form action=”../scripts/processor.php”>
dont laugh, lol. obviously this didnt work to well plus anyone viewing my source code knows that I am I trying to access files outside of the document root.
i thought about mirroring the externals script directory in the document root and then use and include to call the external processing script, but this seems a bit redundant.
So if any of you wonderful experience programers have any ideas, they would be greatly appreciated.
Oh one more thing I work on a share server through cpanel so I have no direct access to the httpd.config file but i do have access to the .htaccess file