.htaccess mod drops navigation, ads don't appear.

Discussion in 'Co-op Advertising Network' started by thundercow, Mar 10, 2008.

  1. #1
    I have a site that is html based.

    I draw header, footer and navbar with <!--#include virtual="footer.txt" -->.

    But if I add this line, "AddType application/x-httpd-php .php .htm .html" to my .htaccess file, as required, my header footer and navbar all disappear.

    So, I figured, well my pages are already reading includes, so I'll just skip the .htaccess modification and skip to the next instruction and put this code in my pages: <!--#include virtual="/ad_network_192.php" -->

    But, no ads appear.

    Interstingly, the system is writing to ad_network_ads text file, so something is happening correctly.

    Ideas?
     
    thundercow, Mar 10, 2008 IP
  2. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try to include the php file with the code below.

    <?php

    @include("ad_network_192.php");

    ?>
     
    Webray, Mar 10, 2008 IP
  3. thundercow

    thundercow Well-Known Member

    Messages:
    246
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Nope. I believe that would only work if the file had a .php extension, no?

     
    thundercow, Mar 10, 2008 IP
  4. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I just realized that you were not using php extensions.
     
    Webray, Mar 10, 2008 IP