Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

php5 files to run php 5

Options
  • 17-11-2006 2:17pm
    #1
    Registered Users Posts: 648 ✭✭✭


    hi,

    i found a program that only runs on php 5.
    my host says i can run php 5 if i rename the php files extensions to php5

    as this is not a clean solution do anyone know if i can do any htaccess magic for the folder that holds the program so as it will recognise php files as php5.

    TNX!!


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    mod_rewrite may work, but I don't know how to use it.

    An alternative could be to rename all the files to .php5, and then hand-code a .php file for each page which redirects the person to the .php5 file (along with all of the POST and GET vars).


  • Registered Users Posts: 648 ✭✭✭ChicoMendez


    seamus wrote:

    An alternative could be to rename all the files to .php5, and then hand-code a .php file for each page which redirects the person to the .php5 file (along with all of the POST and GET vars).


    tnxbut thats what im trying to avoid.. would be a nightmare id say


  • Registered Users Posts: 648 ✭✭✭ChicoMendez


    seamus wrote:
    mod_rewrite may work, but I don't know how to use it.

    for ref you stick this into the htaccess


    AddHandler application/x-httpd-php5 .php


  • Registered Users Posts: 2,919 ✭✭✭Bob the Builder


    for ref you stick this into the htaccess


    AddHandler application/x-httpd-php5 .php
    exactly my idea.... but do your reasearch on MIME files before you do anything...


Advertisement