Results 1 to 3 of 3
Thread: PHP mime type problems
Jun 19, 2007, 23:37 #1
PHP mime type problems
I'm having the following program. My remote server uses both PHP 4 and 5. That's why I switch between the two using a .htaccess file (AddHandler application/x-httpd-php5 .php).
However, my local server here is on PHP5 only and when I run the same PHP scripts (with the .htaccess in the directory) the browser wants me to download the file instead of displaying it...
I think there is some problem with the MIME types... It seems that the MIME application/x-httpd-php5 is not recognized by my server. When I delete the .htaccess on the local server, the php scripts are running normally.
Any ideas how to make the local server work with the .htaccess?
Jun 20, 2007, 01:16 #2
- Join Date
- Jan 2001
- chennai , tamil nadu , India
- 0 Post(s)
- 0 Thread(s)
are there any other special specific configurations in the .htaccess file ?
Will it be a problem if you remove it locally ?Chris, Programmer/Developer,
Laravel Php Developers, Ruby on Rails programmers,
Moodle, Opencart, Magento, Geodesic Classifieds/Auctions,
Jun 20, 2007, 01:19 #3
Some of the .htaccess files have only this line:
AddHandler application/x-httpd-php5 .php
But other have some other access rights lines, which are important.
I syncronize the local and remote php scripts and I cannot always modify/delete the .htaccess files.