Problem with the PHP AD code

Discussion in 'Free Hosting' started by Trixter, Apr 8, 2007.

Thread Status:
Not open for further replies.
  1. Trixter

    Trixter New Member

    Messages:
    384
    Likes Received:
    0
    Trophy Points:
    0
    PHP:
    <? include("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?> 
    no longer works for me, it just gives me a function error. tghought id let you know. :)


    Thanks
    Trixter

    PS i hope i dont have to go and recode all my pages with the java code.
     
  2. Brandon

    Brandon Former Senior Account Rep Community Support

    Messages:
    19,181
    Likes Received:
    28
    Trophy Points:
    48
    use

    PHP:
    <?php file_get_contents("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?>
    that should work!
     
    Last edited: Apr 23, 2007
  3. Zenax

    Zenax Active Member

    Messages:
    1,377
    Likes Received:
    4
    Trophy Points:
    38
    mmnn11 could you refrain from posts with just smilies in them as they don't really help the user who is having a problem.

    I have been having trouble with the PHP ad code, however I just paste in the JS one instead!

    Regards,
    Zenax
     
  4. Micro

    Micro Retired staff <i> (11-12-2008)</I>

    Messages:
    1,301
    Likes Received:
    0
    Trophy Points:
    36
    <?php echo file_get_contents("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?>

    That one works, Brandons was missing the file_get_contents.
     
Thread Status:
Not open for further replies.

Share This Page