Ok, my first guess is there is a space after the EOF; on the last line. PHP is very picky about that. Make sure that there are no spaces after that

$body = <<<EOF
{$phpAds_raw['html']}
EOF; <-- no spaces after the semi-colon