Мой include()
работает через include(bloginfo('template_directory') . '/home_bloc_horaires.php');
(хотя это показывает путь на экране, который я, очевидно, не хочу).Include() работает с bloginfo(), но дает фатальную ошибку с get_stylesheet_directory_uri()
Однако include(get_stylesheet_directory_uri().'/home_bloc_horaires.php');
терпит неудачу и Урожайность ошибки:
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
Warning: include(http://127.0.0.1/wordpress/mirail/wp-content/themes/mmt-2014/home_bloc_horaires.php): failed to open stream: no suitable wrapper could be found in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
Warning: include(): Failed opening 'http://127.0.0.1/wordpress/mirail/wp-content/themes/mmt-2014/home_bloc_horaires.php' for inclusion (include_path='.;C:\php\pear') in D:\EasyPHP\www\wordpress\wp-content\themes\mmt-2014\header.php on line 348
Тем не менее, echo get_stylesheet_directory_uri().'/home_bloc_horaires.php';
показывает действительный, функциональный путь. Любое объяснение?