Re: Protecting include files
| From: | Tom Carter | Date: | Sun, 19 Aug 2001 08:34:24 +0000 |
| Subject: | Re: Protecting include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63369@lists.php.net to get a copy of this message | ||
In addition to this you can place the file out of the web tree.... PHP can,
AFAIK, include files based on their absolute file path, eg /home/config.inc.
This means that there is no way to directly browse to a file
(web tree is the part of a server/whatever that the webserver (eg apache)
uses to load files when requested to)
> Hi,
>
> I have a php script which includes .inc files. Is there any way in which I
> can prevent a normal surferfrom viewing these files. Is there any command
> that I can add to a .htaccess file.
>
> Thanks
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~ \\\\\\__________________________________
> ! SIDDHARTH HEGDE / CHAOSGAMERZ.COM !
> ! Webmaster \____ For PC Game screeshots, cheat !
> ! http://www.ChaosGamerz.COM o| o codes, trainers,
> downloads, !
> ! webmaster@chaosgamerz.com( |_ game music, FREE e-mail and even !
> ! ICQ 84475206 |-- FREE FULL VERSION games for that !
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \___/ 486------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>