Solution:1
You’re trying to include
by URL. You need to include
by the file’s path (not the uri):
<?php
$stylesheet_root = get_stylesheet_directory();
include( $stylesheet_root . '/myfile.php' );
?>
Read more about get_stylesheet_directory() in the docs.