[H-GEN] Mozilla and PHP

Michael Anthon michael at anthon.net
Sat May 10 18:23:25 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

> I've got an internal webserver here on my freshly installed debian 3.0
> system. We use php for some of the pages. For some strange reason,
> Mozilla refuses to access the php and insists on downloading the pages
> instead. (IE works fine, strangely enough.)

That's odd, I'm assuming you mean that the pages are processed correctly by
the server and that moz simply wants to save the html output?  I'd be
looking at the headers returned by the server (lynx -source -head <url> is a
good way) and checking the content type returned by the script.  I'd suspect
that it's not what it should be.

> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Mozilla doesn't recognise the type. Have I mucked something up? I
> thought php was supposed to just work (it always has before).

The mime type here is not what the browser should see.  I think by default
php should return a content type of text/html.  You can, of course, override
this.

Cheers
Michael


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list