"Include" php code getting error messages
-
I am trying to get code from a php file to show up on a WordPress page.
This code is supposed to insert a Google Adsense banner on the page and does just that on a non-Wordpress page but not on a WordPress page.Using the “Insert PHP WordPress Plugin” instructions I inserted this code into my WordPress page which is supposed to refer to a separate php page. This is the code that is supposed to work with the plugin:
[insert_php]
include(“https://www.builtreport.com/include_adsense_3.php”);
[/insert_php]This is how I was typing the code on my non-Wordpress page:
<?php
include(“https://www.builtreport.com/include_adsense_3.php”);
?>I get 3 error messages which are below the shark picture on this page
instead of a Adsense banner ad: https://testwordpress.builtreport.com/italian-movies/2nd-post/The error messages:
Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/tr33h0useh0use/public_html/testwordpress.builtreport.com/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
Warning: include(https://www.builtreport.com/include_adsense_3.php): failed to open stream: no suitable wrapper could be found in /home/tr33h0useh0use/public_html/testwordpress.builtreport.com/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
Warning: include(): Failed opening ‘https://www.builtreport.com/include_adsense_3.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /home/tr33h0useh0use/public_html/testwordpress.builtreport.com/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
- The topic ‘"Include" php code getting error messages’ is closed to new replies.