Re: DXF/PHP Problem

From: Date: Tue, 15 Apr 2003 21:42:23 +0000
Subject: Re: DXF/PHP Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144033@lists.php.net to get a copy of this message
<Sysadmin@saginawcontrol.com> wrote in message news:H000006d00245ecd.1050441772.email.saginawcontrol.com@MHS... > Ok, I'm not sure if this is a PHP problem or Apache problem but I can't > find any information on it anywhere else and you guys appear to know > everything. Here it goes. I have a script that I am using on a site > that allows a person to type in a part number and it will automatically > redirect them to the corresponding file (DXF) if it exists. The > problem is, rather letting them download it, IE tries to open the file > as text. Do I need to put some sort of header in it to keep IE from > opening it? Please help as I am ripping out my hair. Thanks in > advance and I apologize if this is off-topic. I would try to add .dxf MIME settings to your web server configuration, ie # apache.cfg AddType image/vnd.dxf dxf DXF If this fails, you can write a script which sends the header explicitly, ie header("Content-type: image/vnd.dxf"); and then does a binary pass-through of the file contents. Some versions of Internet Explorer may still ignore the content-type directive, depending on the extension; see http://www.mail-archive.com/modperl@apache.org/msg33618.html HTH

« previous php.general (#144033) next »