Help!!

Discussion in 'Co-op Advertising Network' started by raymatog, Dec 15, 2004.

  1. #1
    Hi
    I feel stupid now!
    Is there any one who now how to get a simple html code,java code to put on my site ,so my ads can start working,i signed up to day and nothing is working,i only have a possebillity to use html or java.
    Please send me some info?
    Thanks
    Raymond
    Here is the only html code i found,its not working...?
    <!--#include virtual="/ad_network.php" -->
     
    raymatog, Dec 15, 2004 IP
  2. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #2
    You need to be able to run the ad_network.php file, isn't that your problem then?
     
    g00gl3r, Dec 15, 2004 IP
  3. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it's php not html not cgi not java.

    To run php your server needs to be able to do so.
    To include php into htm(l) you have two choices
    1. generate a .htaccess file and entry to force htm(l) pages to be parsed by PHP 2 versions availabel

    passthru

    .htaccess :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} ^(.*).htm [NC,OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*).html [NC]
    RewriteRule ^(.*) /passthru.php?file=$1
    </IfModule>

    or add handler in .htaccess

    AddHandler application/x-httpd-php .htm

    2. If you are on apache include a php handler (easy to do when you have cpanel) if it's IIS change mimetype handling (I'm not an expert on IIS)

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

    or short form
    .htm .html application/x-httpd-php

    This will than start working on PHP in HTML which is indicated by
    <?php (start php) ?> (end php)


    M
     
    expat, Dec 15, 2004 IP
  4. raymatog

    raymatog Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi
    Thanks
    But i dont think i can do that,i dont know how,and im not fakmliliar with that script..
    Sorry
    Thanks
    Raymond
     
    raymatog, Dec 15, 2004 IP
  5. raymatog

    raymatog Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi
    Thanks
    But i dont think i can do that,i dont know how,and im not fakmliliar with that script..
    Sorry
    Thanks
    Raymond
     
    raymatog, Dec 15, 2004 IP