Change your include
to include_once
. This is because you are including the same file twice - and each time you include it, you are declaring the file_get_html
function.
Edit: You probably want to do the same with your require
on the following line, changing it to require_once