Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Closed Thread
How to add php include & cgi include statments to html file
Old 04-16-2008, 10:48 AM How to add php include & cgi include statments to html file
spencermjax's Avatar
Experienced Talker

Posts: 35
Trades: 0
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" -->
__________________

Please login or register to view this content. Registration is FREE

Last edited by spencermjax; 04-16-2008 at 11:24 AM.. Reason: found solution
spencermjax is offline
View Public Profile Visit spencermjax's homepage!
 
 
Register now for full access!
Old 04-16-2008, 11:48 AM Re: How to add php include & cgi include statments to html file
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Can I ask why you need both
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
View Public Profile
 
Old 04-16-2008, 11:58 AM Re: How to add php include & cgi include statments to html file
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You could also put something like this in a .htaccess file

AddHandler x-httpd-php .html .htm .cgi .php .shtml
joder is offline
View Public Profile
 
Old 04-21-2008, 10:19 PM Re: How to add php include & cgi include statments to html file
spencermjax's Avatar
Experienced Talker

Posts: 35
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
spencermjax is offline
View Public Profile Visit spencermjax's homepage!
 
Closed Thread     « Reply to How to add php include & cgi include statments to html file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.13065 seconds with 12 queries