• 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(“http://www.builtreport.com/include_adsense_3.php”);
    [/insert_php]

    This is how I was typing the code on my non-Wordpress page:

    <?php
    include(“http://www.builtreport.com/include_adsense_3.php&#8221;);
    ?>

    I get 3 error messages which are below the shark picture on this page
    instead of a Adsense banner ad: http://testwordpress.builtreport.com/italian-movies/2nd-post/

    The error messages:

    Warning: include(): http:// 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(http://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 ‘http://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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nabonga

    (@nabonga)

    If this post shows up again it is because I thought it was going to be posted on a forum for the plugin itself but it redirected to here.

    Thread Starter Nabonga

    (@nabonga)

    I got it to work. I changed the location of the external php file to the same directory that WordPress is installed instead of it’s location at the root of my website.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert PHP WordPress Plugin’ is closed to new replies.