New user probaly old question?

Discussion in 'Co-op Advertising Network' started by Tony, Dec 24, 2004.

  1. #1
    I just found out about this concept and would like to add a site.

    I started on page 36 and have read numerous threads but have yet to see the answer I'm looking for, or if I did I didn't understand it.

    My site is a simple html site using ssi's, I installed everything as described but can't get both the existing ssi's to execute as well as the co op ads to display, I can get one or the other but not both.

    My question therefore is quite simple, is it possible to add the php co op code to my existing html page and for both to work? :confused:

    I think the problem is with the .htaccess file but am not 100% sure.

    Tony
     
    Tony, Dec 24, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    I don't think you can evaluate a single page on the server as both PHP and SSI (I could be wrong though).

    But you definitely should be able to use other SSI stuff. Do you get any sort of errors when doing it?
     
    digitalpoint, Dec 24, 2004 IP
  3. Tony

    Tony Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've had several, I've fiddled with .htaccess so many times it's hard to remember them.

    If I add AddType application/x-httpd-php .php .htm .html to the htaccss file the page format isn't recognised and I get the option to download it.

    I guess an option that would work is if I converted all html includes to php code. I'd then have an html page with php includes plus the co op code, would that work and if so anyone know the code I'd use???

    Tony
     
    Tony, Dec 24, 2004 IP
  4. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I ran the the adnetworkphp file and the htaccess file, passthroughphp file for html pages , as earlier discussed on this forum, and it worked fine for me . Not sure whether this is what you are asking
     
    crazyhorse, Dec 24, 2004 IP
  5. Tony

    Tony Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Not sure what this is ??? passthroughphp

    I would like to display co op ads on an html page that currently uses ssi includes like this

    <!--#include virtual="/data/adsense.txt"-->

    If I need to change these to the php equivalent can anyone point me in the right direction???

    At the end of the day I don't really want to change the complete site to php or shtml, if that's the only option I just make another site.

    Tony
     
    Tony, Dec 24, 2004 IP
  6. Homer

    Homer Spirit Walker

    Messages:
    2,396
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The problem with this is you will lose the html page. The Googlebot won't like that. If you pages are new and have no webpresence then rename all files to php and everything work perfectly. Just finished this site http://www.designlogos.net/. If you choose to do this the php include call is <?php require_once('includes/ssidefooter1.htm'); ?>

    I could not get the html fix working either, after spending several hours playing with .htaccess and server settings.



    Good luck


    John
     
    Homer, Dec 24, 2004 IP
  7. buyoffit

    buyoffit Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    unless php isn't enabled to run on your server then the htaccess should work..

    Make a blank whatever.php page and put in: <?phpinfo()?> then run the page, if that works then php is enabled.

    If it is enabled then make a blank .htaccess file and place it in the directory route (the highest point of the server directory path where www.domain.com/.htaccess <--

    and place: AddType application/x-httpd-php .html
    That will enable .html to parse php. also make sure you have the paths correct, if ya indoubt do a full directory path on the include, such as: http://www.domain.com/file/you/wish/to/include.php

    =) enjoy.
     
    buyoffit, Dec 25, 2004 IP
  8. buyoffit

    buyoffit Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    btw htaccess file is something.htaccess without the 'something'
     
    buyoffit, Dec 25, 2004 IP