Closed Bug 147459 Opened 24 years ago Closed 23 years ago

Offers to download "PHP" objects

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: david.bottrill, Assigned: Matti)

References

()

Details

Entering the above URL spawns several download dialog boxes offering to download such objects as "frameset.php" and "blank_top_blue.php" I have tested the above URL in Konqueror and all works correctly.
Worksforme, Win32 build 2002-05-25-08.
WFM with RC3 (2002052306) on WinMe
WFM, 1.0rc3 Linux, running Crossover with Flash6. There's a flash menu on the page, and some some soundtrack playing It's impossible to view source of any of the frames via menu however (application/x-unknown-content-type)
cin case it's related: the URL also spawn two extra windows: 1 normal size + 1 small add.
when you install PHP and let's say Apache then with Netscape 4.79, Konqueror, Opera and Galeon when you enter http://<localhost>/<php file> in the navigation bar the server (=Apache) will execute that file and display the results on the client. Not so Mozilla: it wants to know how to download the file. HOW do you run PHP files on Mozilla? It got mentioned once here: http://groups.google.com/groups?hl=en&lr=&ie=UTF8&oe=UTF8&selm=3C937FD7.8080809%40spam.de but what to do was never answered. I think it is a serious problem, but who knows... I see no further mentioning so it must be common knowledge how to do it or noone does it...
PHP files doesn't run in Mozilla. You request a URL from the server. The server executes the php and sends normal HTML to the browser (this is the result of the php, Mozilla doesn't know anything about php). You can get a download dialog if : The server sends the wrong mime-type for the html. The server has problems with Http pipelining A problem/bug in our new pipelining code. In your posting : You can't tell mozilla to show this mime-type because mozilla can't handle application/x-httpd-php. You must change the server settings to send text/html That's a misconfigured server and not a problem with Mozilla. Mozilla follows only the standards and offers you a download dialog. (IE and Opera breaks the standards in this case) If that is not your server : Send a mail to the webmaster and/or use .htaccess This URL is wfm -> wfm
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Right. Netscape 4.79, Opera, Galeon, Konqueror are all dead wrong for having this working without tweaking servers and scripts, and no package installer program ever knows what it is doing anyway, which must be why it works off the bat in the other browsers. Just read the post quoted in my previous comment.
Netscape 4.79, Opera, Galeon, Konqueror: wrong Netscape4.78 use the same way and follows the standard. >Not so Mozilla: it wants to know how to download the file. no, Mozilla wants to download what the server sends (the content and not the file). I might be Html but you don't tell mozilla that you send html. Just change the .php mime setting tzo text/html and it works. Mozilla does what the server sends. a webmaster should be able to configure a server correct and send not a wrong HTML mime-type. Opera would also do it if there are not many stupid webmasters arround. (just look the recent discussion in one of their newsgroup) I you don't want to configure the mime-types do this: Send no mime-type and mozilla does the same (looks for the extension and/or content)
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.