473,657 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_scrip ts.js" -->
<link href="staengl3. css" rel="stylesheet " type="text/css">
</head>
<body bgcolor="#E8E5D 9"
onLoad="MM_prel oadImages('imag es/subpage_nav_r1_ c1_f2.gif','ima ges/subpage_nav_r1_ c2_f2.gif','ima ges/subpage_nav_r1_ c3_f2.gif','ima ges/subpage_nav_r1_ c4_f2.gif','ima ges/subpage_nav_r1_ c5_f2.gif','ima ges/subpage_nav_r1_ c6_f2.gif');">
<div align="center">
<table width="740" border="0" cellpadding="10 " cellspacing="0"
class="borderOu ter">
<tr>
<td align="center" valign="middle" ><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
<tr>
<td align="center">
<!--#include file="inc_heade r_company.htm" -->
<!--#include file="inc_nav.h tm" -->

What kind of include is this, and how do I activate on the new
server.???
Jul 17 '05 #1
4 1611
I noticed that Message-ID:
<da************ **************@ posting.google. com> from lawrence
contained the following:
<!--#include file="inc_heade r_company.htm" -->
<!--#include file="inc_nav.h tm" -->
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******@geoci ties.com> wrote in message
news:da******** *************** ***@posting.goo gle.com...
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_scrip ts.js" -->
<link href="staengl3. css" rel="stylesheet " type="text/css">
</head>
<body bgcolor="#E8E5D 9"
onLoad="MM_prel oadImages('imag es/subpage_nav_r1_ c1_f2.gif','ima ges/subpage_nav_r1_ c2_f2.gif','ima ges/subpage_nav_r1_ c3_f2.gif','ima ges/subpage_nav_r1_ c4_f2.gif','ima ges/subpage_nav_r1_ c5_f2.gif','ima ges/subpage_nav_r1_ c6_f2.gif');">
<div align="center">
<table width="740" border="0" cellpadding="10 " cellspacing="0"
class="borderOu ter">
<tr>
<td align="center" valign="middle" ><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
<tr>
<td align="center">
<!--#include file="inc_heade r_company.htm" -->
<!--#include file="inc_nav.h tm" -->

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********@boe ing.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
2990
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 waste of time to start writing yet another IDE and so am now thinking in terms of new features/plug-ins for existing systems. Right now I mostly use Komodo Personal and it's pretty close to being what I want. They don't currently support plug-ins,...
47
9127
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
2935
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 completely in a WAPI environment, completely web based. Presently we are using citrix to serve our clients a product that is developed in house using proprietry language, with a backend that is running on Linux using C-Isam (soon to be...
11
2086
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> nodes; // For clarity, let this be "orig_nodes" BuildTree includes a member variable:
121
10025
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
8
1923
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 can call back it. So do we keep the includes in the source file or in its header file and just call the header from the c file. Are there any more rules when we go for includes. Thanx to yu all who bother to share.... su
669
25859
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
132
4581
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 community. It would seem that C99 is the most up-to-date Standard, but far more people seem to be working off the C89 Standard. Could someone please explain to me why this is so? --
184
7004
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, single executable apps. My goal is to create desktop applications for use on Windows XP+ OSs that are distributed as single executables that do not require traditional install packages to run. I would like to use a drag and drop UI development...
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.