Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server side includes

Status
Not open for further replies.

sonun

IS-IT--Management
Dec 26, 2001
384
US
how do I enable/install server side includes on the webserver I installed on redhat7.1.
In the /apache_home/conf/httpd.conf

There was a commented bit of .shtml which I uncommentd to look like this. But this still dont work.
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml

As I viewed the document source I saw the,
<!--#include file=&quot;top.shtml&quot; -->
which shouldnt have appeared in the source if it understood/interpreted that it was a inlcude.
As you might have gussed it already, I want to include ont html page in nother. So I renamed the top.htm file (which was to be included) to top.shtml. Now the browser doesnt seem capable of handling this as when I try to open the .shtml file in a browser itdisplays the file ver-ba-tim.

Please advise.
Thanks.

Please advise.

 
Hi Wullie,
Soory to post my query here..but I cant seem to trace the post a new Query newheer on the page.
My problem is that I want to call a php script in a SSI page.
like the #include virtual=scriptname.php
But I always come across the SSI error.
On the contrary if I call the txt file in include it works fine.
ne ideas.
I tried the javascrpt <script scr=scriptname.php> option too but too doesn't work.
Netahoy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top