I have a file called pdo.php like this:
$pdo = new PDO('mysql:host=localhost;port=3306;dbname=yadayadadbname',
'yadadauser', 'yadayadapassword');
// See the "errors" folder for details...
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>
Which is used in the code by
require_once "pdo.php";.
It's working fine, but I'm concerned about storing that pdo.php file on the public_html folder on the production server. Is there a safer way to store the pdo.php file or what's the better chmod permission for that file? Thanks in advance for any help.