![]() |
|
|
How to add php include & cgi include statments to html file |
|
Experienced Talker
Posts: 35
|
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" -->
__________________
onsdesigns.com Last edited by spencermjax : 04-16-2008 at 10:24 AM. Reason: found solution |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: How to add php include & cgi include statments to html file |
|
DEAD Good Coder
Posts: 1,201
Name: Stefan
Location: London, UK
|
Can I ask why you need both
![]()
__________________
Offering Website Design Worldwide, please visit my website |
|
|
|
|
|
Re: How to add php include & cgi include statments to html file |
|
Experienced Talker
Posts: 35
|
the reason was that I have a script installed and after setting it up following the directions, my php include statments were not functioning. All is fine now. Thanks.
__________________
onsdesigns.com |
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |