when I change htaccess I get "some files can harm your computer"

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

  1. Gibson

    Gibson Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I'm doing fine with the file with the .php extention, but still no luck with the .html extentions. Going to get a Christmas tree tonight...work more on this later.
     
    Gibson, Dec 10, 2004 IP
  2. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Gibson, the message you are seeing is due to the fact that your sever probably has SSI enabled in httpd.conf. Basically, unless they will turn that off for your site, you will not be able to parse your .htm and .html files as php with the AddHandler in your .htaccess file.

    If your ISP cannot turn SSI (Server Side Includes) in httpd.conf then you have a few options:

    1) Use the SHTML setup in the Coop instructions. Just use SSI to include the php files
    2) rename all of your pages to .php (not a great alternative probably)
    3) use the perl implementation, but I think the SSI/SHTML setup should work fine for you
     
    chachi, Dec 10, 2004 IP
  3. Gibson

    Gibson Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Well, this provokes a bunch of additional questions. I'll start by contacting my host.
     
    Gibson, Dec 11, 2004 IP
  4. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #24
    I would just start by using one of the SSI's in the setup instructions. You already have the ad_network files on your machine right? Throw this into a page and see if the ads show:

    <!--#include virtual="/ad_network.php" -->
     
    chachi, Dec 11, 2004 IP
  5. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #25
    interesting point all that should be visible by cpanel is


    User Defined Handlers
    .htm application/x-httpd-php
    .shtml application/x-httpd-php
    System Defined Handlers
    .cgi .plcgi-script
    .shtmlserver-parsed

    works perfectly for me
    M
     
    expat, Dec 11, 2004 IP
  6. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #26
    Hi Gibson,
    I had the same issue as you and changed the .htaccess file and managed to get rid of the message that pops up but the ads do not pop up. I am talking to my host and once i get an answer I will let you know. You can review my thread to get idea what another forum user has recommended. The thread is at:

    http://forums.digitalpoint.com/showthread.php?t=6078

    I'll keep you posted.
    Frank
     
    LaCabra, Dec 11, 2004 IP
  7. Gibson

    Gibson Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #27
    It sounds like you guys may be on to something, but unfortunately, I'm not getting it. Here is how my cpanel is set now:

    User Defined Handlers
    htm application/x-httpd-php
    System Defined Handlers
    .cgi .pl cgi-script
    .php .php3 .php4 .phtml .phps x-httpd-php
    .shtml server-parsed

    With this config the ads don't show with this included in my html page:

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

    How should I change it?
     
    Gibson, Dec 12, 2004 IP
  8. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #28
    you're mixing apples and pears

    <!--#include virtual="/ad_network.php" --> is ssi (server side included)
    for that to work you need to change

    User Defined Handlers
    htm application/x-httpd-php to
    .htm server-parsed

    For plain php to work on htm or html pages it's

    User Defined Handlers
    htm application/x-httpd-php to
    .htm x-httpd-php
    .html x-httpd-php

    or .htm .html x-httpd-php

    The dot is important!!!!
    I'd advise to use plain php if you later wat to add more dynamics etc
    M
     
    expat, Dec 13, 2004 IP
  9. Gibson

    Gibson Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #29
    :D SUCCESS!!!

    Thanks to everyone. Now on to site number 2
     
    Gibson, Dec 13, 2004 IP