wp_remote instead of file_get_contents on non json

Hell yeah it is – check out the HTTP API for more information:

$http = wp_remote_get( 'http://example.com' );
$data = wp_remote_retrieve_body( $http );

// Carry on coding

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