SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Pezenas, South of France
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New boy problems, I think. Be pleased for any help.

    The plan is to
    1. Name all files .htm
    2. Use .htaccess to let PHP see all .htm files. "AddType application/x-httpd-php4 .htm" is used in .htaccess. Thank you Freddy.
    3. Put that .htaccess in the directory which contains the files and subdirectories of that application.

    Files built according to that plan and tested locally. All worked well as described.

    Upload to their directory. The appropriate directory is a pointed directory. That is on web site www.abc.com (also called i.j.k.l) there is a directory root/xyz/ which carries www.xyz.co.uk. All these files are in that directory.

    Attempts to get to that directory at http://i.j.k.l/xyz/ produced the Download File dialog

    Delete .htaccess and then . .

    Attempts to get to http://i.j.k.l/xyz/ produce vanilla html index.htm put there as a test file
    Attempts to get to files http://i.j.k.l/xyz/file.htm produce them without PHP effects (expected but boring)
    Attempts to get http://i.j.k.l/xyz/index.html (does not exist) gets Download File dialog mostly (404 once), attempts to get other non existent files get 404.
    Attempts to get http://i.j.k.l/xyz/index.htm (does exist) get Download file dialog.

    Simple solution, change everything to .php

    Better solution, understand what is going on here. Any pointers?

    Thank you
    Tony

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AddType application/x-httpd-php4 .htm should be:

    AddType application/x-httpd-php .htm for PHP4. I hope this helps you out.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Pezenas, South of France
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you

    Yes that works. But how do I find out what are valid entries for these declarations?

    I found an live example where it was php3 for PHP3, but could not find anywhere with a detailed list. Is there a definition or is it something set by the server?

    Once again, thanks
    Tony


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
  •