I have a php login script which looks for users in a MySQL database. Everything works fine when I have the database connection script in htdocs, calling it with .connect_db.php.
However, I want to put the database connection script in the folder above htdocs, to ensure better privacy, since it obviously has to contain my database password. I call the script with ..connect_db.php, but now it fails.
This worked correctly on another web hosting site which I want to transfer from.
Thank you for your help.