$top is a value returned from the shell command. On my BSD boxen, that'll be 0 if successful, 1 or -1 if not. Something to remember when scripting in PHP, when 0 is generally failure 'stead of success.
When I use tar(1), it's generally like this:
$tar -r /my/path/to/folder -cf my.tarball.tar
So, I'm wondering if that shouldn't be:
exec('tar -r /home/account/wwwroot/domain.com/FolderB -cf exportedHERE.tar', $top);
You could then test the value of $top and see what you get. 'Course, the real proof would be the pudding ... did you get a tarball?
HTH,