Setup Help - htaccess problem

Discussion in 'Co-op Advertising Network' started by TimSchroeder, May 6, 2005.

  1. #1
    I am trying to add the co-op to a new site of mine. I am not getting any errors, but I can't get the ads to show up. :confused:

    I'm pretty sure it is a problem with the htaccess. I have already tried several different suggestions from some other threads. This is what I have in htaccess.

    Any help would be greatly appreciated.
     
    TimSchroeder, May 6, 2005 IP
  2. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you still see the raw php in the source of the site?
     
    SEbasic, May 6, 2005 IP
  3. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yea. right now it shows:

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

    I've tried using just ad_network_248.php and using an absolute url...
     
    TimSchroeder, May 6, 2005 IP
  4. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It needs to be an absolute server path, not URL...

    It does seem like a parsing problem though. What are the file extensions on the pages you are trying to instal the network on?
     
    SEbasic, May 6, 2005 IP
  5. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    HTML for most of them but I though adding "AddType application/x-httpd-php .php .htm .html" would take of of that...

    How would I figure out the absolute server path?
     
    TimSchroeder, May 6, 2005 IP
  6. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nevermind about the server path.
     
    TimSchroeder, May 6, 2005 IP
  7. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is so frustrating. Would I also need to add an absolute server path the link to the txt file in ad_network_248.php ??

    Example: $ad_file = '/home/webdevsi/public_html/adNet.txt';
     
    TimSchroeder, May 6, 2005 IP
  8. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can try, but It honestly looks like a php parsing issue if the served pages still contain raw php...
     
    SEbasic, May 6, 2005 IP
  9. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    oh, I see what you mean. So it must be something in the htaccess that is messing something up I guess...
     
    TimSchroeder, May 6, 2005 IP
  10. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I don't know if this helps, but this is the code that calls the footer from a directory.php file....

    $tpl->assign(array(
    SNAME => $pagetitle,
    CAT_HEADER => $cat_row["header"],
    CAT_FOOTER => $cat_row["footer"],
    META => $cat_row["meta_key"],
    PAGE_HEADER => implode("",file("$Stemplate/header.html")),
    PAGE_FOOTER => implode("",file("$Stemplate/footer.html"))
    ));
     
    TimSchroeder, May 6, 2005 IP
  11. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yeah, that would be my guess, otherwise if the html files were being parsed you wouldn't see any of the raw php in the served pages...

    Are you using an include to call the co-op include code?
     
    SEbasic, May 6, 2005 IP
  12. TimSchroeder

    TimSchroeder Peon

    Messages:
    81
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yea. just using this:

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

    I'll try and get one of my buddies to look into this later I guess. If anyone else sees somthing, let me know. Thanks for the help SEbasic.
     
    TimSchroeder, May 6, 2005 IP