#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    I needed to change some configuration files in appache. I needed to make
    php4 backward compatible with php3 by having .php3 extension files be
    executable by the server just as .php files are. I also need to make
    index.shtml index.php and index.htm to be read as default index files along
    with the index.html file.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    22
    Rep Power
    0
    Can't help re php3/4 but for default index file ...
    In the httpd.conf (or srm.conf) find the line
    DirectoryIndex
    then add any 'default' file you wish.
    Mine has index.html, index.htm, index.cgi, index.php3.
    Don't forget to restart Apache after the changes.

    ------------------
    With my kind regards,
    Peter.

    [This message has been edited by pjlewis (edited October 05, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    A couple of ways to do backwards compatibility.

    You can do this in your httpd.conf or srm.conf

    Addtype application/x-httpd-php .php .php3 .php4 .phtml

    or you can try (*nix only) if you have both php3 and php4 still installed on your machine. also in httpd.conf or srm.conf

    Addtype application/x-httpd-php3 .php3
    Addtype application/x-httpd-php .php .php4 .phtml

Similar Threads

  1. Apache2 w/ php4 as DSO.. but I need to revert to php3
    By JunkCookie in forum PHP Development
    Replies: 0
    Last Post: August 11th, 2003, 02:05 PM
  2. mixing php3 and php4
    By hccfilms in forum PHP Development
    Replies: 15
    Last Post: August 7th, 2002, 10:40 AM
  3. PHP3 -> PHP4 - how to reconfigure applications?
    By adam2000 in forum PHP Development
    Replies: 1
    Last Post: December 14th, 2000, 01:00 AM
  4. PHP4 and PHP3 - Backward compatible?????
    By weihong in forum PHP Development
    Replies: 2
    Last Post: November 27th, 2000, 06:34 AM
  5. PHP3 and PHP4 together
    By an_easy_marc in forum PHP Development
    Replies: 1
    Last Post: October 20th, 2000, 04:44 AM

IMN logo majestic logo threadwatch logo seochat tools logo