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.

Site using mod_rewrite

Discussion in 'Co-op Advertising Network' started by Storebuilder, Mar 9, 2005.

  1. #1
    Hi There,
    I'm having trouble getting the ad's to display on my site at http://www.storebuilder.co.uk.

    I've kept everything the same as in the setup instructions and added the code to footer.php but no joy.

    I suspect that it's something to do with the include path ?

    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');

    All my files are generated on the fly because of the rewrite and so appear to be in the root directory.

    Any help is much appreciated.

    Thanks
     
    Storebuilder, Mar 9, 2005 IP
  2. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The mod_rewrite to make it appear in the root directory will have no affect because
    your using include() or require() and not calling the coop files by http

    [Solution]
    Use the full path - what I do - put everything in document root and call the coop code using $_SERVER["DOCUMENT_ROOT"] to access these files
     
    sadcox66, Mar 9, 2005 IP
  3. Storebuilder

    Storebuilder Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry for being a pain - but where exactly would I put this code?

    Thanks
     
    Storebuilder, Mar 10, 2005 IP
  4. Storebuilder

    Storebuilder Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anyone? Help to get this working would be much appreciated.
     
    Storebuilder, Mar 18, 2005 IP