1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Trying to use full urls

Discussion in 'Co-op Advertising Network' started by Patient, Nov 1, 2004.

  1. #1
    I am trying to use absolute urls in ad_network.php:

    i.e. I have changed the following:
    $ad_file = 'http://www.mysite.com/myfile/ad_network_ads.txt';

    Currently it does run and if I echo $ad in ad_network.php I get something like:
    <a href="http://www.enterprisestoragemanagement.com/faq/information-lifecycle-management.shtml">Information Lifecycle Management</a>
    SEMrush
    However, the ad doesn't display in my pages via echo $ad_network. It's as though it knows $ad on ad_network.php page but doesn't carry $ad_network into my pages.

    Can anyone help please?
     
    Patient, Nov 1, 2004 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You can't use a URL... you would want to use the full path (as the server sees it).
     
    digitalpoint, Nov 1, 2004 IP
  3. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #3
    I presume this is a feature of an include() - is there any other alternative way of achieveing the same outcome?

    PS It does open the .txt file as I can echo $ad!
     
    Patient, Nov 1, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Right, but it can't write to it.
     
    digitalpoint, Nov 1, 2004 IP
  5. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #5
    Is there an alternate way of writing to it?
     
    Patient, Nov 1, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    No, the only supported method would be the setup found under the setup instructions.
     
    digitalpoint, Nov 1, 2004 IP
  7. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #7
    OK, thanks for the help.
     
    Patient, Nov 1, 2004 IP