473,883 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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>Staeng l 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="JavaS cript">
<!--
function MM_preloadImage s() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; 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_swapImgResto re() { //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&&paren t.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.fo rms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++)
x=MM_findObj(n, d.layers[i].document);
if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_sw apImage.argumen ts; document.MM_sr= new Array;
for(i=0;i<(a.le ngth-2);i+=3)
if ((x=MM_findObj( a[i]))!=null){docum ent.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.availHei ght-30;
var winWidth = screen.availWid th-10;
window.open(the URL,winName,"sc rollbars,width= " + winWidth +
",height=" + winHeight + ",screenX=0,scr eenY=0,top=0,le ft=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="descripti on" content="Staeng l Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</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')">
<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="borderOu ter">
<tr>
<td align="center" valign="middle" ><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FAC75 0"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD7 4"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD 5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFB D"><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="Dreamw eaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services. shtm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c1' ,'','images/subpage_nav_r1_ c1_f2.gif',1);" ><img
name="subpage_n av_r1_c1" src="images/subpage_nav_r1_ c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.s htm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c2' ,'','images/subpage_nav_r1_ c2_f2.gif',1);" ><img
name="subpage_n av_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('sub page_nav_r1_c3' ,'','images/subpage_nav_r1_ c3_f2.gif',1);" ><img
name="subpage_n av_r1_c3" src="images/subpage_nav_r1_ c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.s htm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c4' ,'','images/subpage_nav_r1_ c4_f2.gif',1);" ><img
name="subpage_n av_r1_c4" src="images/subpage_nav_r1_ c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.sht m"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c5' ,'','images/subpage_nav_r1_ c5_f2.gif',1);" ><img
name="subpage_n av_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('sub page_nav_r1_c6' ,'','images/subpage_nav_r1_ c6_f2.gif',1);" ><img
name="subpage_n av_r1_c6" src="images/subpage_nav_r1_ c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_n av_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="#FFFFF F">
<tr>
<td><object
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.sw f">
<param name="quality" value="high"><p aram
name="BGCOLOR" value="#FFFFFF" ><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" bgcolor="#FFFFF F"></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"><ta ble width="100%"
border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><strong>Sta engl 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 **@staenglengin eering.com">in* *@staenglengine ering.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>Mechani cal &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>Energ y
Efficient</strong> and <strong>Sustain able</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="#F8F8F 8">
<tr>
<td bgcolor="#C4C6C 6"><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="copyrigh t">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyrigh t">Site by:
<a href="http://www.breviloquen t.com/" target="_blank"
class="copyrigh t">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
8 3315
lawrence <lk******@geoci ties.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****@stanford alumni.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
Darin McGrew <mc****@stanfor dalumni.org> wrote in message news:<ce******* ***@blue.rahul. net>...
lawrence <lk******@geoci ties.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
Darin McGrew <mc****@stanfor dalumni.org> wrote in message news:<ce******* ***@blue.rahul. net>...
lawrence <lk******@geoci ties.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>Staeng l 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="JavaS cript">
<!--
function MM_preloadImage s() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; 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_swapImgResto re() { //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&&paren t.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.fo rms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++)
x=MM_findObj(n, d.layers[i].document);
if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_sw apImage.argumen ts; document.MM_sr= new Array;
for(i=0;i<(a.le ngth-2);i+=3)
if ((x=MM_findObj( a[i]))!=null){docum ent.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.availHei ght-30;
var winWidth = screen.availWid th-10;
window.open(the URL,winName,"sc rollbars,width= " + winWidth +
",height=" + winHeight + ",screenX=0,scr eenY=0,top=0,le ft=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="descripti on" content="Staeng l Engineering is an HVAC and
mechanical systems design firm that focuses on energy efficiency
design for buildings and industrial facilities.">
</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')">
<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="borderOu ter">
<tr>
<td align="center" valign="middle" ><table width="100%"
border="0" cellpadding="0" cellspacing="0" class="borderOu ter">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FAC75 0"><img src="images/spacer.gif"
width="185" height="10"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#8CBD7 4"><img src="images/spacer.gif"
width="182" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#9FCBD 5"><img src="images/spacer.gif"
width="137" height="5"></td>
<td><img src="images/spacer.gif" width="1"
height="5"></td>
<td bgcolor="#6CAFB D"><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="Dreamw eaver" fwdocid = "742308039"
fwnested="0" -->
<tr>
<td><a href="services. shtm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c1' ,'','images/subpage_nav_r1_ c1_f2.gif',1);" ><img
name="subpage_n av_r1_c1" src="images/subpage_nav_r1_ c1.gif" width="94"
height="38" border="0" alt=""></a></td>
<td><a href="company.s htm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c2' ,'','images/subpage_nav_r1_ c2_f2.gif',1);" ><img
name="subpage_n av_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('sub page_nav_r1_c3' ,'','images/subpage_nav_r1_ c3_f2.gif',1);" ><img
name="subpage_n av_r1_c3" src="images/subpage_nav_r1_ c3.gif" width="95"
height="38" border="0" alt=""></a></td>
<td><a href="contact.s htm"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c4' ,'','images/subpage_nav_r1_ c4_f2.gif',1);" ><img
name="subpage_n av_r1_c4" src="images/subpage_nav_r1_ c4.gif" width="88"
height="38" border="0" alt=""></a></td>
<td><a href="links.sht m"
onMouseOut="MM_ swapImgRestore( )"
onMouseOver="MM _swapImage('sub page_nav_r1_c5' ,'','images/subpage_nav_r1_ c5_f2.gif',1);" ><img
name="subpage_n av_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('sub page_nav_r1_c6' ,'','images/subpage_nav_r1_ c6_f2.gif',1);" ><img
name="subpage_n av_r1_c6" src="images/subpage_nav_r1_ c6.gif" width="69"
height="38" border="0" alt=""></a></td>
<td><img name="subpage_n av_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="#FFFFF F">
<tr>
<td><object
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"
width="718" height="210">
<param name="movie" value="front.sw f">
<param name="quality" value="high"><p aram
name="BGCOLOR" value="#FFFFFF" ><param name="LOOP" value="false">
<embed src="front.swf" width="718" height="210"
loop="false" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" bgcolor="#FFFFF F"></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"><ta ble width="100%"
border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><strong>Sta engl 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 **@staenglengin eering.com">in* *@staenglengine ering.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>Mechani cal &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>Energ y
Efficient</strong> and <strong>Sustain able</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="#F8F8F 8">
<tr>
<td bgcolor="#C4C6C 6"><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="copyrigh t">Copyright &copy; 2004,
Staengl
Engineering. All rights reserved.</td>
<td align="right" class="copyrigh t">Site by:
<a href="http://www.breviloquen t.com/" target="_blank"
class="copyrigh t">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
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******@geoci ties.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****@stanford alumni.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
Darin McGrew <mc****@stanfor dalumni.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******@geoci ties.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
On 31 Jul 2004 16:13:21 -0700, lk******@geocit ies.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
Stephen Poley <sb************ ******@xs4all.n l> wrote in message news:<a0******* *************** **********@4ax. com>...
On 31 Jul 2004 16:13:21 -0700, lk******@geocit ies.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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3707
by: news8080 | last post by:
I downloaded a GUI for nagios that uses PHP but when I point the browser at the PHP file, it shows me the source of .php file instead of executing it, if i use command line 'php filname.php' then I see exepected result but why can I not do that via web?? # /usr/local/bin/php -v PHP 4.4.0 (cli) (built: Jul 21 2005 11:55:49) Copyright (c) 1997-2004 The PHP Group
2
3044
by: Sam-Kiwi | last post by:
I've spent the last 6 months developing a pay-per-download website using ASP.NET Users purchase documents and then download them. The intention is that users are only charged for documents they successfuly download. My problem revolves around detecting a successful download, the steps I take to handle the download are as follows:
13
8890
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to implement some way to enable downloading those files from the database which leads me to the following two problems: 1.) How can I create a file "in memory" as I don't want to create temporary files stored on my web server and
5
1899
by: John A Grandy | last post by:
is it possible to write a vb.net code (intended to run on the client-side) that would invoke an instance of IE, have it download a page from a certain URL, and then pre-populate some of the controls on that page, before transferring focus to the browser-page and showing it to the user? (the user would be responsible for submitting the page.)
2
2507
by: Lance | last post by:
Hi all, In VB6, I could use the API too query the size of a file on the web, then download that file showing a custom progress indicator. I realize that I can use the DownloadFile method and show a UI, but I would like to indicate progress in my own form instead. In VB2005, how can I first get the filesize of the web image (a tif file), then stream that image (as an array of bytes??) to a local file while showing progress? If all...
13
4915
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
6
17674
by: balakrishnan.dinesh | last post by:
hi frnds I need to change the Browser settings dynamically in Onload event through javascript. Like Goto: Tools->Internet Options -General -Settings -Check for newer Versions of stored pages. Here check whether this 'Every visit to the page' option chosed or not, if it is not chosed ,it should chosed dynamically.
14
4630
by: Irfan12 | last post by:
i dont know php & i want a script that when a user click on a mp3 hyperlink, the mp3 file start downloading instead of start playing in media player. i got a sxript from internet search. i am using the following code <?php $filename = "path/to/file/filname.ext"; if(!file_exists($filename)) { die("File does not exist!"); } header("Pragma: public");
7
2657
by: lawrence k | last post by:
I've got a music studio for a client. Their whole studio is run with Macintosh computers. Macintosh computers allow file names to have open white spaces, such as "animal hospital.mp3". I have a download script, so customers on the website can download MP3s to their harddrive (rather than merely listen to it in their browsers):
0
9932
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9778
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
10405
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7959
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
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
5784
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
4602
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
3
3228
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.