473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What kind of includes don't use PHP?

I just moved this site a new server:

http://www.staenglengineering.com

On the new server, it does not work. Most pages have a top banner and
bottom footer that is included. The include works successfully on old
server but not on the new one. At first I thought I was seeing PHP
includes() and what needed to happen has that the .htacess needed to
send all html files to the PHP parser - I'd done this many times
before. In fact, I'd done this on my own personal site. So I wrote a
..htaccess file for this to happen. I could not get it to work, though
I checked the paths and the capitalization many times.

If you look at these pages, you'll see the headers and footers are
missing (compared to the same pages shown at the site above):

http://www.publicpen.com/staengl/projects.shtm
http://www.publicpen.com/staengl/resume_staengl.shtm

If you look at the source code, all the includes begin to jumpu out at
you, including this one at the top and the two at the bottom:

<!--#include file="inc_scripts.js" -->
<link href="staengl3.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#E8E5D9"
onLoad="MM_preloadImages('images/subpage_nav_r1_c1_f2.gif','images/subpage_nav_r1_c2_f2.gif','images/subpage_nav_r1_c3_f2.gif','images/subpage_nav_r1_c4_f2.gif','images/subpage_nav_r1_c5_f2.gif','images/subpage_nav_r1_c6_f2.gif');">
<div align="center">
<table width="740" border="0" cellpadding="10" cellspacing="0"
class="borderOuter">
<tr>
<td align="center" valign="middle"><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOuter">
<tr>
<td align="center">
<!--#include file="inc_header_company.htm" -->
<!--#include file="inc_nav.htm" -->

What kind of include is this, and how do I activate on the new
server.???
Jul 17 '05 #1
4 1599
I noticed that Message-ID:
<da**************************@posting.google.com > from lawrence
contained the following:
<!--#include file="inc_header_company.htm" -->
<!--#include file="inc_nav.htm" -->
What kind of include is this, and how do I activate on the new
server.???


This might help
http://www.carleton.ca/~dmcfet/html/ssi.html

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
Seem like your new server has SSI disabled, that's why you can see this code
on the browser. If SSi worked, you shouldn't see these lines.

Savut
http://www.savut.com

"lawrence" <lk******@geocities.com> wrote in message
news:da**************************@posting.google.c om...
I just moved this site a new server:

http://www.staenglengineering.com

On the new server, it does not work. Most pages have a top banner and
bottom footer that is included. The include works successfully on old
server but not on the new one. At first I thought I was seeing PHP
includes() and what needed to happen has that the .htacess needed to
send all html files to the PHP parser - I'd done this many times
before. In fact, I'd done this on my own personal site. So I wrote a
.htaccess file for this to happen. I could not get it to work, though
I checked the paths and the capitalization many times.

If you look at these pages, you'll see the headers and footers are
missing (compared to the same pages shown at the site above):

http://www.publicpen.com/staengl/projects.shtm
http://www.publicpen.com/staengl/resume_staengl.shtm

If you look at the source code, all the includes begin to jumpu out at
you, including this one at the top and the two at the bottom:

<!--#include file="inc_scripts.js" -->
<link href="staengl3.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#E8E5D9"
onLoad="MM_preloadImages('images/subpage_nav_r1_c1_f2.gif','images/subpage_nav_r1_c2_f2.gif','images/subpage_nav_r1_c3_f2.gif','images/subpage_nav_r1_c4_f2.gif','images/subpage_nav_r1_c5_f2.gif','images/subpage_nav_r1_c6_f2.gif');">
<div align="center">
<table width="740" border="0" cellpadding="10" cellspacing="0"
class="borderOuter">
<tr>
<td align="center" valign="middle"><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOuter">
<tr>
<td align="center">
<!--#include file="inc_header_company.htm" -->
<!--#include file="inc_nav.htm" -->

What kind of include is this, and how do I activate on the new
server.???


Jul 17 '05 #3
Savut wrote:

Seem like your new server has SSI disabled, that's why you can see this code
on the browser. If SSi worked, you shouldn't see these lines.

Or possibly the .shtm extension isn't valid SSI for the new host. The OP
could try .shtml and see if that makes a difference.

Brian Rodenborn
Jul 17 '05 #4
Default User <fi********@boeing.com.invalid> wrote in message news:<41***************@boeing.com.invalid>...
Savut wrote:

Seem like your new server has SSI disabled, that's why you can see this code
on the browser. If SSi worked, you shouldn't see these lines.

Or possibly the .shtm extension isn't valid SSI for the new host. The OP
could try .shtml and see if that makes a difference.

Brian Rodenborn


Thanks. I edited Apache's default.config file and got ".shtm" to work
as an exstention.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
5
by: google account | last post by:
Hiya. My CEO wants me to think about the direction the company's product should take. He has a bunch of guys offshore that develop with .NET, and he is keen to use them to build our product...
11
by: Joseph Turian | last post by:
Fellow hackers, I have a class BuildNode that inherits from class Node. Similarly, I have a class BuildTree that inherits from class Tree. Tree includes a member variable: vector<Node>...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
8
by: Jim | last post by:
Hi: Do we have some common style for includes when working on a project with lots of c and h files. Wat I mean is do we have a rule in C when a file includes several files and those file in turn...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
132
by: Frederick Gotham | last post by:
If we look at a programming language such as C++: When an updated Standard comes out, everyone adopts it and abandons the previous one. It seems though that things aren't so clear-cut in the C...
184
by: jim | last post by:
In a thread about wrapping .Net applications using Thinstall and Xenocode, it was pointed out that there may be better programming languages/IDEs to use for the purpose of creating standalone,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.