Syntax error, unexpected $require_dva T_VARIABLE
$require_dva = (require 'dva.php');
getme:
$get_params2 = http_build_query($require_dva);
$result2 = json_decode(file_get_contents('https://api.vk.com/method/messages.getLongPollHistory?ip_version=2&v=5.73&ts='.$bd.'&msgs_limit=200&events_limit=1000&access_token=*токен*'),true);
$require_dva = require('dva.php'); // тут должно так или require "dva.php";
$get_params2 = http_build_query($require_dva);
$result2 = json_decode(file_get_contents('https://api.vk.com/method /messages.getLongPollHist...'.$bd.'&msgs_limit=200&events_limit=1000&access_token=*токен*'),true);