setup on site 2 not working

Discussion in 'Co-op Advertising Network' started by gford, Apr 27, 2005.

  1. #1
    OK. I have tried quite a few things. And this is as close as I get

    http://www.pandapub.com/home.shtml

    At that URL, the bottom, I included

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

    You see the junk as the result..

    any ideas what I did wrong?

    I have include's for my header and a footer after this include and they work fine. like so:
    <!--#include file="header.php"-->
    <!--#include file="footer.php"-->
     
    gford, Apr 27, 2005 IP
  2. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    gford, Apr 27, 2005 IP
  3. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #3
    Put the <!--#include virtual="/ad_network_239.php" --> in your footer ;)
     
    fryman, Apr 27, 2005 IP
  4. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It is, nothing shows up..
     
    gford, Apr 28, 2005 IP
  5. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No. Include the footer. Or a different file altogether.

    You are now including PHP code which doesn't output anything. You will want to include a 3d file which echoes the $ad_network.

    3d file:

    
    include the network file
    echo $ad_network;
    
    PHP:
    <!-- include 3d file...
     
    T0PS3O, Apr 28, 2005 IP
  6. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #6
    gford, Apr 28, 2005 IP
  7. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #7
    On home.shtml:
    <?php
    include 'ad_network_239.php';
    echo $ad_network;
    ?>
    PHP:
    It's not parsed. Virtual includes prolly don't take the output but the raw code or you'll have to tell your htaccess to parse sthml.
     
    T0PS3O, Apr 28, 2005 IP
  8. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Still not working, here is the bottom of my homepage code:
    Unix Prompt> tail -6 home.shtml
    </body>
    <?php
    include 'ad_network_239.php';
    echo $ad_network;
    ?>
    <!--#include file="footer.php"-->


    Just blank ...
     
    gford, Apr 28, 2005 IP
  9. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This server admin stuff is beyond my comprehension. Sorry!
     
    T0PS3O, Apr 28, 2005 IP
  10. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hopefully someone can help me out here..
     
    gford, Apr 28, 2005 IP
  11. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #11
    When I view the SOURCE CODE for the page www.pandapub.com/home.shtml I see this at the end:

    </body>
    <?php
    include 'ad_network_239.php';
    echo $ad_network;
    ?>
    </html>

    So it's not actually calling php for some reason? Very odd..
     
    gford, Apr 28, 2005 IP