By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

the web browser asks me if I want to download my index.htm file,instead of showing it

P: n/a
Under the domain publicpen.com I've several dozen sites in
subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
with any of these sites. But under one, which I put in yesterday,
www.publicpen.com/staengl, when I point my browser there, the browser,
instead of showing me the index.htm pages like it should, it instead
tries to download it as an object. Why?

Below are the contents of index.htm. Does anyone see anythging wrong
here?


<html>
<head>
<title>Staengl Engineering: Energy Efficient Design</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Feb 17 00:36:21
GMT-0500 (Eastern Standard Time) 2004-->
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function openFullWindow(theURL,winName) { //v2.0
var winHeight = screen.availHeight-30;
var winWidth = screen.availWidth-10;
window.open(theURL,winName,"scrollbars,width=" + winWidth +
",height=" + winHeight + ",screenX=0,screenY=0,top=0,left=0");
}
//-->
</script>
<link href="staengl3.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Energy Efficient HVAC Design, Energy
Efficient design, building HVAC design, mechanical design, sustainable
building design, green design, energy efficiency, green buildings,
HVAC for green buildings, passive solar design, solar systems, indoor
air quality, geothermal heat pumps, chiller plants, steam plants,
building energy analysis, energy analysis, commissioning, building
commissioning">
<meta name="description" content="Staengl Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</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')">
<table width="100%" height="95%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" valign="middle"><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">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FAC750"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD74"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFBD"><img src="images/spacer.gif"
width="211" height="5"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="6"
height="6"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0"
width="718">
<!-- fwtable fwsrc="projects_3e_cut_top.png"
fwbase="subpage_nav.gif" fwstyle="Dreamweaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c1','',' images/subpage_nav_r1_c1_f2.gif',1);"><img
name="subpage_nav_r1_c1" src="images/subpage_nav_r1_c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c2','',' images/subpage_nav_r1_c2_f2.gif',1);"><img
name="subpage_nav_r1_c2" src="images/subpage_nav_r1_c2.gif" width="92"
height="38" border="0" alt=""></a></td>
<td><a href="projects.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c3','',' images/subpage_nav_r1_c3_f2.gif',1);"><img
name="subpage_nav_r1_c3" src="images/subpage_nav_r1_c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c4','',' images/subpage_nav_r1_c4_f2.gif',1);"><img
name="subpage_nav_r1_c4" src="images/subpage_nav_r1_c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c5','',' images/subpage_nav_r1_c5_f2.gif',1);"><img
name="subpage_nav_r1_c5" src="images/subpage_nav_r1_c5.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><a href="index.htm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c6','',' images/subpage_nav_r1_c6_f2.gif',1);"><img
name="subpage_nav_r1_c6" src="images/subpage_nav_r1_c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_nav_r1_c7"
src="images/subpage_nav_r1_c7.gif" width="211" height="38" border="0"
alt=""></td>
</tr>
</table>
<table width="718" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.swf">
<param name="quality" value="high"><param
name="BGCOLOR" value="#FFFFFF"><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table width="680" border="0"
cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="170"><table width="100%"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Staengl Engineering
</strong></td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>129 Goodman St.<br>
Charlottesville, VA 22902 </td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>(434)295-8105</td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td><a
href="mailto:in**@staenglengineering.com">in**@sta englengineering.com</a></td>
</tr>
</table></td>
<td><img src="images/spacer.gif" width="50"
height="25"></td>
<td><a href="http://www.usgbc.org/default.asp"
target="_blank"><img src="images/usgbc.gif" width="95" height="100"
border="0" align="right"></a>Staengl
Engineering is a <strong>Mechanical &amp;
HVAC design
firm</strong> whose focus
is energy efficient design for buildings and
industry.
At Staengl Engineering, we believe that the
principles
involved in <strong>Energy
Efficient</strong> and <strong>Sustainable</strong> design
are integral to good design practice. Each
of our designs
represents a careful evaluation of the
customer&rsquo;s
application, and the creation of a system
that is custom
tailored to suit the needs of the client,
and the specifics
of the site environment.</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0"
cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td bgcolor="#C4C6C6"><img src="images/spacer.gif"
width="1" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
<tr>
<td align="center">
<table width="690" border="0" cellspacing="0"
cellpadding="0">
<tr align="left" valign="top">
<td class="copyright">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyright">Site by:
<a href="http://www.breviloquent.com/" target="_blank"
class="copyright">Breviloquent</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
lawrence <lk******@geocities.com> wrote:
Under the domain publicpen.com I've several dozen sites in
subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
with any of these sites. But under one, which I put in yesterday,
www.publicpen.com/staengl, when I point my browser there, the browser,
instead of showing me the index.htm pages like it should, it instead
tries to download it as an object. Why?


Because http://www.publicpen.com/staengl/ is sent with

Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"FAILURE IS NOT AN OPTION. It comes bundled with the software."
Jul 20 '05 #2

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in message news:<ce**********@blue.rahul.net>...
lawrence <lk******@geocities.com> wrote:
Under the domain publicpen.com I've several dozen sites in
subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
with any of these sites. But under one, which I put in yesterday,
www.publicpen.com/staengl, when I point my browser there, the browser,
instead of showing me the index.htm pages like it should, it instead
tries to download it as an object. Why?


Because http://www.publicpen.com/staengl/ is sent with

Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.


Wow, I never would have caught that. It's interesting, I've lost money
every single time I've tried to port someone else's site. I charge for
2 hours, which I assume is excessive because, after all, how hard can
it be to move a bunch of static web pages from one server to another?
And yet every single time so far I have run into problems, because the
original web design made a series of assumptions that are alien to my
way of thinking, and so a simple move of 10 static pages ends up
costing me 6 hours of my time. Amazing.
Jul 20 '05 #3

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in message news:<ce**********@blue.rahul.net>...
lawrence <lk******@geocities.com> wrote:
Under the domain publicpen.com I've several dozen sites in
subdiretories, such as www.publicpen.com/honenbeger. I've no trouble
with any of these sites. But under one, which I put in yesterday,
www.publicpen.com/staengl, when I point my browser there, the browser,
instead of showing me the index.htm pages like it should, it instead
tries to download it as an object. Why?


Because http://www.publicpen.com/staengl/ is sent with

Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.


This is the content type header in the file:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

It looks to me as if this file is already being sent as text/html. Why
does the browser think it is PHP?
Below is the entire text of the file "index.htm".

<html>
<head>
<title>Staengl Engineering: Energy Efficient Design</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Feb 17 00:36:21
GMT-0500 (Eastern Standard Time) 2004-->
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function openFullWindow(theURL,winName) { //v2.0
var winHeight = screen.availHeight-30;
var winWidth = screen.availWidth-10;
window.open(theURL,winName,"scrollbars,width=" + winWidth +
",height=" + winHeight + ",screenX=0,screenY=0,top=0,left=0");
}
//-->
</script>
<link href="staengl3.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Energy Efficient HVAC Design, Energy
Efficient design, building HVAC design, mechanical design, sustainable
building design, green design, energy efficiency, green buildings,
HVAC for green buildings, passive solar design, solar systems, indoor
air quality, geothermal heat pumps, chiller plants, steam plants,
building energy analysis, energy analysis, commissioning, building
commissioning">
<meta name="description" content="Staengl Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</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')">
<table width="100%" height="95%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" valign="middle"><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">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FAC750"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD74"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFBD"><img src="images/spacer.gif"
width="211" height="5"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="6"
height="6"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0"
width="718">
<!-- fwtable fwsrc="projects_3e_cut_top.png"
fwbase="subpage_nav.gif" fwstyle="Dreamweaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c1','',' images/subpage_nav_r1_c1_f2.gif',1);"><img
name="subpage_nav_r1_c1" src="images/subpage_nav_r1_c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c2','',' images/subpage_nav_r1_c2_f2.gif',1);"><img
name="subpage_nav_r1_c2" src="images/subpage_nav_r1_c2.gif" width="92"
height="38" border="0" alt=""></a></td>
<td><a href="projects.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c3','',' images/subpage_nav_r1_c3_f2.gif',1);"><img
name="subpage_nav_r1_c3" src="images/subpage_nav_r1_c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c4','',' images/subpage_nav_r1_c4_f2.gif',1);"><img
name="subpage_nav_r1_c4" src="images/subpage_nav_r1_c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.shtm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c5','',' images/subpage_nav_r1_c5_f2.gif',1);"><img
name="subpage_nav_r1_c5" src="images/subpage_nav_r1_c5.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><a href="index.htm"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('subpage_nav_r1_c6','',' images/subpage_nav_r1_c6_f2.gif',1);"><img
name="subpage_nav_r1_c6" src="images/subpage_nav_r1_c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_nav_r1_c7"
src="images/subpage_nav_r1_c7.gif" width="211" height="38" border="0"
alt=""></td>
</tr>
</table>
<table width="718" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.swf">
<param name="quality" value="high"><param
name="BGCOLOR" value="#FFFFFF"><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table width="680" border="0"
cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="170"><table width="100%"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Staengl Engineering
</strong></td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>129 Goodman St.<br>
Charlottesville, VA 22902 </td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td>(434)295-8105</td>
</tr>
<tr>
<td><img src="images/spacer.gif"
width="5" height="5"></td>
</tr>
<tr>
<td><a
href="mailto:in**@staenglengineering.com">in**@sta englengineering.com</a></td>
</tr>
</table></td>
<td><img src="images/spacer.gif" width="50"
height="25"></td>
<td><a href="http://www.usgbc.org/default.asp"
target="_blank"><img src="images/usgbc.gif" width="95" height="100"
border="0" align="right"></a>Staengl
Engineering is a <strong>Mechanical &amp;
HVAC design
firm</strong> whose focus
is energy efficient design for buildings and
industry.
At Staengl Engineering, we believe that the
principles
involved in <strong>Energy
Efficient</strong> and <strong>Sustainable</strong> design
are integral to good design practice. Each
of our designs
represents a careful evaluation of the
customer&rsquo;s
application, and the creation of a system
that is custom
tailored to suit the needs of the client,
and the specifics
of the site environment.</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="718" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="20"
height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0"
cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td bgcolor="#C4C6C6"><img src="images/spacer.gif"
width="1" height="1"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
<tr>
<td align="center">
<table width="690" border="0" cellspacing="0"
cellpadding="0">
<tr align="left" valign="top">
<td class="copyright">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyright">Site by:
<a href="http://www.breviloquent.com/" target="_blank"
class="copyright">Breviloquent</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="8"
height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Jul 20 '05 #4

P: n/a
I wrote:
Because http://www.publicpen.com/staengl/ is sent with

Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.

lawrence <lk******@geocities.com> wrote: This is the content type header in the file:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">


The META http-equiv markup is irrelevant. What matters is the actual HTTP
header sent by the server:

$ lynx -dump -head http://www.publicpen.com/staengl/
HTTP/1.0 200 OK
Date: Fri, 30 Jul 2004 20:31:10 GMT
Server: Apache/1.3.22 (Unix) PHP/4.0.6 mod_perl/1.26 FrontPage/5.0.2.2623 AuthMySQL/2.20 mod_ssl/2.8.5 OpenSSL/0.9.6a
Last-Modified: Thu, 29 Jul 2004 15:23:22 GMT
ETag: "69293-2cf4-4109166a"
Accept-Ranges: bytes
Content-Length: 11508
Content-Type: application/x-php
Age: 80551
X-Cache: HIT from http.rahul.net
Proxy-Connection: close

Note the Content-Type header.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Timing has a lot to do with the outcome of a rain dance."
Jul 20 '05 #5

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in message news:<ce**********@blue.rahul.net>...
I wrote:
Because http://www.publicpen.com/staengl/ is sent with

Content-Type: application/x-php

and most browsers don't know what to do with that, and most browsers are
configured to ask the user to save unknown file types.


lawrence <lk******@geocities.com> wrote:
This is the content type header in the file:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">


The META http-equiv markup is irrelevant. What matters is the actual HTTP
header sent by the server:

$ lynx -dump -head http://www.publicpen.com/staengl/
HTTP/1.0 200 OK
Date: Fri, 30 Jul 2004 20:31:10 GMT
Server: Apache/1.3.22 (Unix) PHP/4.0.6 mod_perl/1.26 FrontPage/5.0.2.2623 AuthMySQL/2.20 mod_ssl/2.8.5 OpenSSL/0.9.6a
Last-Modified: Thu, 29 Jul 2004 15:23:22 GMT
ETag: "69293-2cf4-4109166a"
Accept-Ranges: bytes
Content-Length: 11508
Content-Type: application/x-php
Age: 80551
X-Cache: HIT from http.rahul.net
Proxy-Connection: close

Note the Content-Type header.


Any idea why this file would act like this? Or why the server would
send this header for this one file. None of the domains on the server
are acting this way. We have 30 domains hosted on this server, all of
them work normally. For instance, look here:

http://www.keymedia.biz/

Under the keymedia.biz domain, the software server the "index.html"
file correctly. But in www.publicpen.com/staengl the server is trying
to serve "index.html" as application/x-php. Why would it do this, and
for just this one file?
Jul 20 '05 #6

P: n/a
On 31 Jul 2004 16:13:21 -0700, lk******@geocities.com (lawrence) wrote:
Any idea why this file would act like this? Or why the server would
send this header for this one file. None of the domains on the server
are acting this way. We have 30 domains hosted on this server, all of
them work normally. For instance, look here:

http://www.keymedia.biz/

Under the keymedia.biz domain, the software server the "index.html"
file correctly. But in www.publicpen.com/staengl the server is trying
to serve "index.html" as application/x-php. Why would it do this, and
for just this one file?


You'd have to look in the server configuration file(s) to find out.
Someone set it up that way. There really isn't a lot of point in
speculating about it. It might just be a typo.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #7

P: n/a
Stephen Poley <sb******************@xs4all.nl> wrote in message news:<a0********************************@4ax.com>. ..
On 31 Jul 2004 16:13:21 -0700, lk******@geocities.com (lawrence) wrote:
Any idea why this file would act like this? Or why the server would
send this header for this one file. None of the domains on the server
are acting this way. We have 30 domains hosted on this server, all of
them work normally. For instance, look here:

http://www.keymedia.biz/

Under the keymedia.biz domain, the software server the "index.html"
file correctly. But in www.publicpen.com/staengl the server is trying
to serve "index.html" as application/x-php. Why would it do this, and
for just this one file?


You'd have to look in the server configuration file(s) to find out.
Someone set it up that way. There really isn't a lot of point in
speculating about it. It might just be a typo.


Who set it up that way? I set up both of the domains here listed, and
I was the last person to edit the default.config file for Apache. So
if I didn't do it, then it seems likely no one did.
Jul 20 '05 #8

P: n/a
lawrence wrote:
Stephen Poley wrote...
(lawrence) wrote:
in www.publicpen.com/staengl the server is trying to serve
"index.html" as application/x-php. Why would it do this, and for
just this one file?


You'd have to look in the server configuration file(s) to find out.
Someone set it up that way. There really isn't a lot of point in
speculating about it. It might just be a typo.


Who set it up that way?


How in the world do we know? And what does it matter? You fixed the
problem last I checked. And server configuration is only tangentially
related to ciwah.

(Hey, what's this hook doing in the side of my mouth...)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.