Forum Moderators: phranque
Everything seems to be working fine except on my one Win98 computer which now suddenly can't view anything on the website. Viewing the website from my XP computer works fine.
The Win98 computer tries to save everything on the site as a file instead of just viewing the page.
Any clue what the problem might be? It seems to me that I encountered a similar problem years ago but even that had nothing to do with htaccess. I had not even heard of htaccess at that point.
[edited by: HeyJim at 3:00 pm (utc) on Feb. 20, 2004]
Yesterday I loaded the htaccess file again and tried to view the site from the Win98 computer and did so without any problem. Refreshed and reloaded several times without any problem so I went ahead and set up my htm page with the php in it and proceeded with my little project.
This morning my partner (using the Win98 machine) was going along fine and then suddenly she couldn't view anything on the website in question. I wound up rebooting her computer but still can't view anything on the website. It just treats the htm pages as a file that must be saved or opened from where it is. However, other websites can be viewed perfectly so I can only conclude that the problem has something to do with the .htaccess file that's now present.
At this point I have no way of even telling if it is just a problem with this one computer or if all visitors with Win98 are encountering the same thing. The site displays fine on my XP computer.
Really puzzling.
I'm out of my league here (I don't do php - yet), but it seems to me that what is wanted here is AddHandler and not AddType. It seems to me that there is no reason to instruct Apache to tell the browser that the page content is of MIME-type "php3". Rather, you just want to make sure that the server parses the page for php code before serving it as a completed MIME-type text/html document.
If you tell the client browser that the page is of type application/x-httpd-php3, then Windows will look for a program on the PC to run it. Failing that, it will offer to download it (save it to disk).
I could be totally and completely wreong about this, but I hope someone with an investment in the problem will investigate and post their findings.
These directives are described in the Apache mod_mime [httpd.apache.org] documentation.
Jim