Re: Protecting files
| From: | Ray Hunter | Date: | Tue, 18 Feb 2003 00:08:40 +0000 |
| Subject: | Re: Protecting files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135921@lists.php.net to get a copy of this message | ||
Try putting your files config files in a directory outside of the root
web directory and access the files via the include_path directive in the
php.ini file.
If you dont have access you can add create a .htaccess file or set the
configuration in a php script that is run before your other scripts.
http://www.php.net/manual/en/configuration.changes.php
http://www.php.net/manual/en/function.ini-set.php
That should help you out.
Ray
On Mon, 2003-02-17 at 14:17, PR wrote:
> Hello,
>
> How can I protect my php files among other files like templates
> (.inc) and mysql config (config.inc) files being copied/read/imported (front
> page)/used by other applications other than my
> site...
>
> can this be done by htaccess? is so , could anyone point me into right
> direction?
>
> --
> Thank you,
> Paul
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php