SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess and PHP problem

    Hi I put this in my .htaccess

    AddType application/x-httpd-php .htm

    However, when I tried to open test.htm, the include function inside doesn't work.

    Anyone knows why?

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could be any number of reasons, to start with the obvious.

    Are you using php3, if so

    AddType application/x-httpd-php3 .htm

    Also if using php4 try

    AddType application/x-httpd-php4 .htm

    And last but not least in your apache config httpd.conf make sure

    AllowOverride All

    is in there for the directory you are trying to use it in.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


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
  •