Moving config.php files out of public directory
The bluehost security tips recommend moving php config files (containing mysql passwords etc) into a folder above the public_html folder.
I understand the concept, but am struggling with the execution. Presumably I add an include statement in the relevant php file to point to the password include file, but what would be the pathname for the include file?
For example, if the password file was mypwd.php (example) in the account root folder, would the include statement be;
Doesn't the "/" just take me to the web root folder?
To go to mypwd.php in the directory immediately above the root folder from a script in the root folder you'd use
Tags for this Thread