PHP require_once help

Discussion in 'PHP' started by trafficmarshals, Nov 7, 2009.

  1. #1
    Hi,

    I'm trying to run the following in my wordpress

    <h2>Archives</h2>
    <ul> <p> <?php require("http://pilot-resources.net/linku/showlink.php?id=2"); ?> </p>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>

    The link http://pilot-resources.net/linku/showlink.php?id=2 randomly displays links, all I want to do is to include the output from this link.

    Any ideas? I can't get it to work :confused:
     
    trafficmarshals, Nov 7, 2009 IP
  2. trafficmarshals

    trafficmarshals Peon

    Messages:
    337
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have also tried

    <?php require_once 'http://pilot-resources.net/linku/showlink.php?id=2'; ?>
    <?php require 'http://pilot-resources.net/linku/showlink.php?id=2'; ?>

    these didn't work either
     
    trafficmarshals, Nov 7, 2009 IP
  3. trafficmarshals

    trafficmarshals Peon

    Messages:
    337
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    never mind. Got it!!
     
    trafficmarshals, Nov 7, 2009 IP
  4. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #4
    You're welcome!
     
    Pudge1, Nov 7, 2009 IP