Hook any php file into the wordpress api

You mean something like this?

<?php
require 'path/to/wordpress/wp-blog-header.php';
bloginfo('url');
?>

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