[thelist] php settings for DB access

John Handelaar john at evolt.org.uk
Wed Aug 14 08:51:01 CDT 2002


% -----Original Message-----
% From: thelist-admin at lists.evolt.org
% [mailto:thelist-admin at lists.evolt.org]On Behalf Of Ben Phillips
% Sent: 14 August 2002 13:33
% To: thelist at lists.evolt.org
% Subject: RE: [thelist] php settings for DB access
%
% > You could move the connection info outside the web document
% > tree and include it in your php scripts using an absolute path...e.g.
% >
% > Web server root is /home/httpdocs so you put config file in
% > /home/phpconfigs and your scripts
% > include('/home/phpconfigs/whatever.php');
% > NB If you have to run PHP with open_basedir and safe_mode
% > enabled then this won't work
%
% if you can't put anything outside the web document tree and you are
% using apache, then simply name the include file .whatever.php. apache
% will never send anything beginning with a . (full stop/period) afaik, so
% it can't be downloaded, but can be included.

That will work, but if the files are named *.php already, then
the real problem is that that directory isn't executing PHP
files correctly.

------------------------------------------
John Handelaar

T +44 20 8933 1494       M +44 7930 681789
F +44 870 169 7657   E john at userfrenzy.com
------------------------------------------



More information about the thelist mailing list