Need some help, guys

Discussion in 'Co-op Advertising Network' started by fryman, Jul 21, 2005.

  1. #1
    This is weird...

    I put up the code on an AWS site. The home page is an html one and the ads show with no problems, but if you go to any inner page, which are htm, I get the raw code. I am parsing both html and htm, so I don't understand what is wrong

    Any help?

    www.discount-computer.info
     
    fryman, Jul 21, 2005 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Must be the htaccess file, can you paste the appropriate bit for us to look at?
     
    T0PS3O, Jul 21, 2005 IP
  3. Epica

    Epica Well-Known Member

    Messages:
    1,007
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Inner pages are showing ads fine for me...
     
    Epica, Jul 21, 2005 IP
  4. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #4
    Could you check it again, azakers? I just see the code at the bottom
     
    fryman, Jul 21, 2005 IP
  5. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Probably tweaking as we speak.

    Homepage:

     
    T0PS3O, Jul 21, 2005 IP
  6. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #6
    Yeah, I was tweaking, but didn't work, still shows ads just on the front page
     
    fryman, Jul 21, 2005 IP
  7. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #7
    That's my htaccess file
     
    fryman, Jul 21, 2005 IP
  8. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #8
    Your .htm document is not parsing php . I can see the raw <?php .... ?> block

    try adding this line
    AddType application/x-httpd-php .php .htm .html

    (or just .htm)

    and move the AddHandler lines to the top of the file (as with the AddType line)
     
    frankm, Jul 21, 2005 IP
  9. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #9
    Sorry... you lost me... so, I need to add an extra line with AddType application/x-httpd-php .php .htm .html?
     
    fryman, Jul 21, 2005 IP
  10. Epica

    Epica Well-Known Member

    Messages:
    1,007
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    170
    #10
    (I'm an idiot)

    I came into this thread from an adsense thread - I was looking at adsense ads :(

    sheesh - some great help I am - I am not seeing COOP ads on inner pages - sorry
     
    Epica, Jul 21, 2005 IP
  11. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #11
    I'm not talking about adsense, I am talking about the coop ads!! :D
     
    fryman, Jul 21, 2005 IP
  12. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #12
    not sure it will help you Fryman, but you can try it at least :)
    and yes: Add the AddType line
     
    frankm, Jul 21, 2005 IP
  13. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #13
    and move the AddHandler things before the rewriterules
     
    frankm, Jul 21, 2005 IP
  14. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #14
    Put this at the top of the file

    AddType application/x-httpd-php .php .htm .html
    AddHandler application/x-httpd-php .htm
    AddHandler application/x-httpd-php .html


    Made no difference at all, damn site refuses to parse the code, but only with htm pages, html work fine. WTF?
     
    fryman, Jul 21, 2005 IP
  15. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #15
    Fryman: your rewrite rules redirect everything to computer.cgi .. which is probably a perl or shell script...

    somewhere down the line your 'footer.php' or something will be included, and will be outputed as just normal txt.[no parsing]

    check that :)

    and also, create a stupid file like testing.htm in the dir that is concerned with some simple php like <? echo "yes!"; ?>

    see if that simple thing works.
    if so, focus on the computer.cgi script
     
    frankm, Jul 21, 2005 IP
  16. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #16
    Nintendoooooooooooooooo where are youuuuuuuuu????????

    This thing is using that mr rat script... it uses all kind of weird templates. Since I don't know any php I am just completely lost...

    Oh, well... I'll just go to scriptlance and hire some guy to get this done
     
    fryman, Jul 21, 2005 IP
  17. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #17
    Dammit... not one lousy programmer has answered to my project at scriptlance and I am sick of sitting here waiting to get this fixed, where else can I hire someone to do this?
     
    fryman, Jul 21, 2005 IP
  18. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #18
    pm me the script [can you pm files btw? - well...] software.cgi, i can take a look at it.
     
    frankm, Jul 21, 2005 IP
  19. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #19
    Thanks, but it isn't a problem with the file, the problem is being able to parse php in a cgi script

    Shawn, any idea of what can I do?
     
    fryman, Jul 21, 2005 IP
  20. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #20
    a389951l, Jul 21, 2005 IP