Html site but with a bunch of php pages also

Discussion in 'Co-op Advertising Network' started by Gibson, Dec 14, 2004.

  1. #1
    Okay I got the ad working on an html site by using the "passthru.php" method. The trouble is that I also have 50 or so php pages on this site generated in a db. When I validate, these pages don't pass because they aren't showing the ads. (Only the html pages are showing ads.)

    Is there a way to show the ads on these php pages? If so, what code do I put in them?
     
    Gibson, Dec 14, 2004 IP
  2. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi if you have below code in a seperate file all you need to do is an include statement in the generated php wher you want this.

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

    M
    PS part of the instruction for other sites
     
    expat, Dec 14, 2004 IP
  3. Gibson

    Gibson Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried putting this code directly into the php file and it ended up printing the code on the page.

    But if I'm understanding you, I create a separte file with this code and then put an "include statement" where I want this code to go? Please show me how to write the include statement. (I'm obviously php impared) :eek:
     
    Gibson, Dec 14, 2004 IP
  4. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    before I do this the pages you generate are what mime type

    htm or php and can u explain how these pages are generated as I understand they are .php using db calls for content......

    if it prints the code it looks like these are .htm and your .htm is not parsed.

    Thus an include wouldn't work either.
    M
     
    expat, Dec 14, 2004 IP
  5. loewydesign

    loewydesign Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Maybe you guys can answer this. I've just set my site up on teh network, I've got base and a weight but my ads still say Pending Approval. So does that mean my ads are not running live on other sites? Or does it mean I have a problem?

    thanks in advance for your help
     
    loewydesign, Dec 14, 2004 IP
  6. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    all ads are aproved by an admin (shawn) usually within hours. If they are enabled they will than dissapate through the coop net which takes up to 100 hours to be fully effective.
    M
     
    expat, Dec 15, 2004 IP