1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP include on an HTML page?

Discussion in 'Programming' started by Googles76, Aug 21, 2005.

  1. #1
    Is it possible to use a PHP include on a .htm page? My index page is .htm but I want to include a "featured products" list that is a .php file. Is there any way to do this without changing my index page to php?

    What I have right now is:

    <?php
    include 'http://www.myurl.com/featured.php';
    ?>
    PHP:
    But it does not work. I am pretty sure my htaccess is set to work with all types.
     
    Googles76, Aug 21, 2005 IP
  2. Googles76

    Googles76 Peon

    Messages:
    664
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That is correct. I was just not using the include path the correct way:D
     
    Googles76, Aug 21, 2005 IP