Problem with Code using Blogger

Discussion in 'Co-op Advertising Network' started by LindaB, Dec 19, 2004.

  1. #1
    I'm having a problem getting the code to work to display ads in my blogger blog. I've uploaded the ad_network.php, ad_network_ads.txt, and .htaccess files to my blog directory. I've added the following code to my Blogger template:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../../:../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>

    Then I republished the blog. I don't get ads, but the following error message at the bottom of the page where the ads should be:

    Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home3/www/mlmmillionaire/blog/ad_network.php on line 36

    Warning: file_get_contents(http://ads.digitalpoint.com/network.php?s=www.mlmmillionaire.com&type=link): failed to open stream: no suitable wrapper could be found in /home3/www/mlmmillionaire/blog/ad_network.php on line 36

    Please help - I have no idea what this error message means or how to fix it. Thanks!

    Linda
     
    LindaB, Dec 19, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Your hosting provider has PHP setup to not allow URLs within fopen().
     
    digitalpoint, Dec 19, 2004 IP