开发者

PHP: Can I set the interpreter path in a PHP file?

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?


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)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜