Reply
How to add php include & cgi include statments to html file
Old 04-16-2008, 09:48 AM How to add php include & cgi include statments to html file
spencermjax's Avatar
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
spencermjax is offline
Reply With Quote
View Public Profile Visit spencermjax's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 04-16-2008, 10:48 AM Re: How to add php include & cgi include statments to html file
Gilligan's Avatar
DEAD Good Coder

Posts: 1,201
Name: Stefan
Location: London, UK
Can I ask why you need both
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-16-2008, 10:58 AM Re: How to add php include & cgi include statments to html file
joder's Avatar
Flipotron

Posts: 5,555
Name: James
Location: In the ocean.
You could also put something like this in a .htaccess file

AddHandler x-httpd-php .html .htm .cgi .php .shtml
joder is online now
Reply With Quote
View Public Profile
 
Old 04-21-2008, 09:19 PM Re: How to add php include & cgi include statments to html file
spencermjax's Avatar
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
spencermjax is offline
Reply With Quote
View Public Profile Visit spencermjax's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to How to add php include & cgi include statments to html file
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.14277 seconds with 15 queries