0

I'm running IIS 6.0.

Is it possible to set the interpreter path (somewhat like the PHP shebang line) in a PHP File rather in the config-file?

Example: Let's say I have two version installed (PHP4 and PHP5) the default is set to PHP4. Can I set the files individually to use another interpreter (in that case PHP5) than the default one?

1
  • I'm not sure but I think its possible by changing in php.ini file Commented Feb 10, 2011 at 10:20

2 Answers 2

3

I don't know about IIS, but this is usually handled in Apache-land using mod_php for one one version, and fast-cgi mode for the other, and then setting the handler for php files in a .htaccess file (if you need granular control)

Sign up to request clarification or add additional context in comments.

Comments

1

How about different file extensions, like php4 and php for the current version. That should be no problem. Never did it, but that can be configured for sure, b/c your server-application then can decide which interpreter to invoke.

2 Comments

This might be a solution. Seems like you can do that with the "cache ISAPI extension".
I don't know, but there must be a simple and fundamental way to connect an extension with the desired server-reaction. "cache ISAPI extension" seems somewhat complex for such a setting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.