running arbitrary php files

WordPress offers a dedicated API for your need: the Plugin API. So (let) write a plugin, which is really easy. Then you can use the extra code probably without conflicts.

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