SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast itportal's Avatar
    Join Date
    Sep 2005
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP mime type problems

    Hello,

    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?

  2. #2
    Web development Company chrisranjana's Avatar
    Join Date
    Jan 2001
    Location
    chennai , tamil nadu , India
    Posts
    705
    Mentioned
    0 Post(s)
    Tagged
    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, Chrisranjana.com
    Chennai, Tamil Nadu, India.
    Php Developers, Ruby on Rails Developers

  3. #3
    SitePoint Enthusiast itportal's Avatar
    Join Date
    Sep 2005
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •