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.

Problems with php include and .shtml pages

Discussion in 'Co-op Advertising Network' started by jamjv, Dec 12, 2004.

  1. #1
    Hello,

    First time poster long time browser.

    I've set it up on another site and it worked great but for some strange reason it won't show the ads on www.buycollectablesonline.com.

    All pages are .shtml and it does support php.
    http://www.buycollectablesonline.com/test.php


    I created the ad_network.php and the ad_network_ads.txt and set the permissions to 777.

    I added this to the pages.

    <!--#include virtual="/inc/ad_network.php" -->

    As you can see when you view the source you dont see the php script or the <!--#include virtual="/inc/ad_network.php" --> code.

    When I few the source via ftp i can see the <!--#include virtual="/inc/ad_network.php" --> so it seems to be not parsing the php.

    The weird thing is when i renamed the php file and refreshed the page I would come up with an internal server error.

    Any help would be appreciated.

    Thanks.
     
    jamjv, Dec 12, 2004 IP
  2. jwtimmon

    jwtimmon Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try

    <!--#include virtual="/ad_network.php" -->

    instead of
    <!--#include virtual="/inc/ad_network.php" -->


    and move the ad_network.php out of the /inc folder into the root
    same with the txt file



    John
     
    jwtimmon, Dec 12, 2004 IP
  3. jamjv

    jamjv Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah I already tried that but it didn't work. The txt files is getting data if that helps.
     
    jamjv, Dec 12, 2004 IP
  4. jwtimmon

    jwtimmon Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do your SSI includes work anyway?

    If your not sure use this

    Last modified: <!--#echo var="LAST_MODIFIED" -->

    which should insert a line into your page showing the date the file was modified
    (assuming your using apache)
    John
     
    jwtimmon, Dec 12, 2004 IP
  5. jwtimmon

    jwtimmon Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Also try making a file called emm.... testads.php
    put in it

    <?php
    readfile('http://ads.digitalpoint.com/network.php');
    ?>

    save it to the root
    call it from your browser
    i.e. www.yourdomain.com/testads.php

    you should see a page with an ad on it


    John
     
    jwtimmon, Dec 12, 2004 IP
  6. jamjv

    jamjv Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes the SSI includes are working fine and I ran that test and the ads show.

    http://www.buycollectablesonline.com/testads.php

    Hrrmm
     
    jamjv, Dec 12, 2004 IP
  7. csaba

    csaba Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try this
    http://forums.digitalpoint.com/showthread.php?t=6197
    Csaba
     
    csaba, Dec 13, 2004 IP
  8. jamjv

    jamjv Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    That worked, thanks csaba and jwtimmon. You guys were very helpful.
     
    jamjv, Dec 13, 2004 IP