From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 15:39:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7404106564A for ; Mon, 17 Nov 2008 15:39:42 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id DD3F48FC08 for ; Mon, 17 Nov 2008 15:39:41 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from [10.1.11.1] ([10.1.11.1]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id mAHFSqGZ046358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Nov 2008 17:28:52 +0200 (SAST) (envelope-from jonathan+freebsd-questions@hst.org.za) From: Jonathan McKeown To: freebsd-questions@freebsd.org Date: Mon, 17 Nov 2008 17:43:19 +0200 User-Agent: KMail/1.9.4 References: <200811141736.mAEHaC8L003397@dc.cis.okstate.edu> In-Reply-To: <200811141736.mAEHaC8L003397@dc.cis.okstate.edu> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.399 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: php5 Only IE Users can View Pages. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 15:39:42 -0000 On Friday 14 November 2008 19:36, Martin McCormick wrote: > I inherited a mrtg application thatnow is running on a > FreeBSD6.3 system. Clients report that one can see the php pages > when using Internet Explorer but not other browsers that should > display the pages. Those customers see raw code. > > Any suggestion as to what I should be looking for? Hi Martin Bear in mind I'm answering off the top of my head, so you may need to do some digging. I have a feeling that Internet Explorer ignores the Content-Type header from the server and displays what it thinks you should see. If the server is not configured with a MIME type for .php, the default with Apache is to send the pages with a MIME type of text/plain. Internet Explorer will ignore this, interpret the page as HTML and display it, whereas almost every other browser will obey the server's instruction and therefore display the raw HTML as plain text without any interpretation. Check whether Apache has an AddType application/x-httpd-php .php line or similar in the config file. Jonathan