Including PHP files doesn’t work outside of Localhost

The correct way to load a PHP file in the theme directory is to use the locate_template function.

<?php locate_template(array('parts/block1.php'),true,false); ?>

The true makes it automatically require it. The false makes it not require_once it.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)