How to add php include & cgi include statments to html file

Discussion in 'HTML & Website Design' started by spencermjax, Apr 16, 2008.

  1. #1
    How would I include php include and cgi include statments on the same html file?

    MIME Types: application/x-httpd-php html htm shtml shtm

    - when the file is HTML, php include statments Works fine but not cgi (<?php require("file.html"); ?>)
    - when the file is SHTML, cgi include statments Works fine but not php (<!--#exec cgi="./cgi-bin/file.cgi"-->)

    I need to include both on the same page...please help.
    Thanks!


    ************************
    I found the solution:
    I used an SHTM file and...
    replaced: <?php require("file.html"); ?>
    with: <!--#include virtual="file.html" -->
     
    spencermjax, Apr 16, 2008 IP