I have this script in my functions PHP, WP 4.8
function foobar_func( $atts ){
require_once('ftp://skkelticz@ftpx.forpsi.com/www/wp-content/themes/sporty-child/simple_html_dom.php');
$html = file_get_html('http://hokejbal.cz/1-liga/tabulky/');
$ret = $html->find('table.standings', 1);
print $ret;
}
add_shortcode( 'foobar', 'foobar_func' );
When I put the shortcode into my page, it gives me three errors, which I dunno how to repair. Please give me some advice:
Warning: require_once(): ftp:// wrapper is disabled in the server configuration by allow_url_include=0 in /web/htdocs2/skkelticz/home/www/wp-content/themes/sporty-child/functions.php on line 11
Warning: require_once(ftp://...@ftpx.forpsi.com/www/wp-content/themes/sporty-child/simple_html_dom.php): failed to open stream: no suitable wrapper could be found in /web/htdocs2/skkelticz/home/www/wp-content/themes/sporty-child/functions.php on line 11
Fatal error: require_once(): Failed opening required 'ftp://...@ftpx.forpsi.com/www/wp-content/themes/sporty-child/simple_html_dom.php' (include_path='.') in /web/htdocs2/skkelticz/home/www/wp-content/themes/sporty-child/functions.php on line 11