Posted by Angelos on 09/15/05 17:30
Hello, I did a rough search on the web on how to include remote files. But
most of what I found was inappropriate. Anyway ...
What I want to do is create a configuration file wich will have all the DB
connection settings and other sensitive information (config.inc.php) and be
a able to access it within the server AND from a remote server... (e.g. I
want have all the website settings in my machine but the website is hosted
elsewhere) or I want to restrict access of my confiuration file from the
hosting company.
There are two cases that I am looking at.... :
1. The config.inc.php file is located in another webserver and can be
accessed from the www.domain.com/configuration
2. The config.inc.php is located outside the web accessible folder (and that
is the most preferable way of doing it) e.g /home/config_includes/
I would appreciate if you can give me examples of how and If I can do
that....
Thanks....
Angelos.
[Back to original message]
|