I am using PHP4, Apache, on linux. Apache only recognize .php not .php3. Can anyone tell me how can I make apache parses .php3

OOzy

    Edit your apache configuration file (by default, APACHEDIR/conf/httpd.conf)

    Look for a line that looks like

    AddType application/x-httpd-php .php

    and edit appropriately. Note you can have more than one entry here, just make sure each one is separated by a space; i.e.

    AddType application/x-httpd-php .php .phtml .php3 .inc

    is also a valid configuration

    HTH,

    AC

      This does not always work for some reason, because I use (w/php4) AddType application/x-httpd-php .php ,a nd apache doesn't recognize the php mime type because when i open the html root it doesn't apply the correct ext as veiwable as www doc (remains .txt) However, all www .php docs display as www docs! This wasn't the case before I reformatted the drive and started from scatch? Let's just say that this solution doesn't always work...

      regards

        Thank both of ya guys.

        I will Coweld idea but I found the solution to my prob. I have phpMy admin in .php3 so it didn't work w/ PHP4. The solution is included in phpmyadmin. There a script call extchg.sh which convert .php3 .php. The script even went inside my .php3 and changed the links to .php. Cool HA?

        OOzy

          If it doesn't always work, it's a bug of some sort. The answer I gave is the way to tell Apache what to do with a filename with a given extension.

          Out of curiosity, which OS did this happen on?

          AC

            Hi

            I am running Redhat 6.1.

            OOzy

              Write a Reply...