TODO:当PHP遇上IIS

TODO:当PHP遇上IIS

IIS调用PHP是使用CGI的功能,所以IIS一定要开启CGI的功能。默认为将 PHP 编译为 C CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。

开启“MIME类型”配置

安装“PHP Manager”,目前PHP Manager只支持IIS7,在Windows 8之后系统默认的IIS版本都是大于7的版本;那么要安装就得做特殊处理,修改注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters的MajorVersion 是DWORD值,它的值十进制是10,把它改成9;安装好PHP Manager,在把值改回来。小O在windows10下安装成功了。

TODO:当PHP遇上IIS

TODO:当PHP遇上IIS

为了安全起见,建议把“目录浏览”的功能关闭

设置“默认文档”,可以添加常见的index后缀,如php,html,htm等

PHP Manager主要用来配置PHP的版本,PHP的扩展功能,简单便捷

TODO:当PHP遇上IIS

如果你有这样的业务环境,希望对你有所启发吧。本文只是小O的一次记录。小O是非常不喜欢PHP生产环境使用IIS。

wxgzh:ludong86

转载于:https://my.oschina.net/todosomeone/blog/835790

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
填充下面这个程序中所有出现// TODO: fill the code这个任务的地方#include <iostream> #include <cstring> #include "ourstring.h" #include "strlib.h" using namespace std; OurString::OurString(){ // TODO: fill the code } OurString::OurString(const char *str){ // TODO: fill the code } OurString::OurString(const OurString &dstr){ // TODO: fill the code } OurString::~OurString(){ // TODO: fill the code } string OurString::toString() const{ // TODO: fill the code } OurString OurString::subStr(unsigned int start, unsigned int n) const{ // TODO: fill the code } bool OurString::operator > (const OurString &dstr) const{ // TODO: fill the code } bool OurString::operator < (const OurString &dstr) const{ // TODO: fill the code } bool OurString::operator == (const OurString &dstr) const{ // TODO: fill the code } unsigned int OurString::length () const{ // TODO: fill the code } const OurString& OurString::operator = (const OurString &dstr){ // TODO: fill the code } const OurString& OurString::operator = (const char *str){ // TODO: fill the code } char& OurString::operator[](int index){ // TODO: fill the code } const OurString OurString::operator + (const OurString &dstr) const{ // TODO: fill the code } const OurString OurString::operator + (const char *str) const{ // TODO: fill the code } const OurString& OurString::operator += (const OurString &dstr){ // TODO: fill the code } const OurString& OurString::operator += (const char *str){ // TODO: fill the code } ostream & operator<<(ostream &os, const OurString &dstr){ // TODO: fill the code } istream & operator>>(istream &is, OurString &dstr){ // TODO: fill the code }
05-29

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值