Reply to Re: Securing PHP scripts.

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация