Support » Fixing WordPress » Running plugins with .php5 file extension

  • marcusedvalson

    (@marcusedvalson)


    I was wondering if there is any way to run plugins with a .php5 file extension. I have some plugins that require php4 and some that I want to use that require php5. I have both versions of php installed on my server, I just have to designate that it is php5 by using a “.php5” file extension. However, when I rename the plugin with this extension, it doesnt appear in my plugins menu in the wordpress admin panel. Is there any solution to this? Or am I stuck with choosing between either php4 or php5?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just bumping this thread as I need to do this too, the SimplePie plugin requires PHP5 in order to format RSS feed output, but if I use an .htaccess hack to put my entire WordPress folder under PHP5, it freaks out and breaks everything. For this reason I was wondering about solely running the SimplePie plugin in PHP5…

    ®

    Anyone?

    ®

    OK, the only way I’ve done this is to force PHP5 for my entire WordPress site by adding this line to the .htaccess file in the root directory:

    AddHandler application/x-httpd-php5 .php

    It works for me, but I don’t have anything whch requires PHP4 since I changed theme and dropped some plugins, otherwise I’m not sure how you’d do it as WordPress can’t recognise .php5 plugins…

    ®

    OK, the only way I’ve done this is to force PHP5 for my entire WordPress site by adding this line to the .htaccess file in the root directory

    Same here. It seems to work though. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Running plugins with .php5 file extension’ is closed to new replies.