第一种方法: System.Diagnostics.ProcessStartInfo info =new System.Diagnostics.ProcessStartInfo(path); info.WorkingDirectory = Path.GetDirectoryName(path); S ...
1. 普通php 项目 location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $docum ...
分类:
Web程序 时间:
2017-06-10 21:23:25
阅读次数:
214
1.find / -name nginx.conf找到nginx配置文件 2.找到locationlocation ~ \.php {#去掉这里的$ root /var/www/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; f ...
分类:
其他好文 时间:
2017-05-15 19:53:33
阅读次数:
133
假设开启FastCGI模式,.htaccess无法生效,一直提示no input file specified。 由于在Fastcgi模式下。php不支持rewrite的目标网址的PATH_INFO的解析 ThinkPHP执行在URL_MODEL=2时。会出现 No input file speci ...
分类:
其他好文 时间:
2017-04-22 14:45:23
阅读次数:
207
Django 获取一个项目的多个数据 request.POST.getlist('favor') 上传文件 import os obj =request.FILES.get('') file_path =os.path.join('upload',obj.name) with open(file_p ...
分类:
编程语言 时间:
2017-04-10 17:08:28
阅读次数:
270
1. you should have a /etc/protocols file. It must have been deleted somehow. It comes from the netbase package. apt install -y netbase 2. keystone tok ...
分类:
其他好文 时间:
2017-04-01 12:42:35
阅读次数:
574
IO流方式: 环境: 新建winform 代码: ...
1、单例模式指的是创建单个实例,例如:数据库连接池中包含10个数据库连接,用户访问数据时随机从连接池中拿出一个进行连接,其他用户再次访问时不再创建对象进行连接 ...
分类:
编程语言 时间:
2017-03-12 23:58:35
阅读次数:
335
request.GET request.POST request.FILES request.path_info request.xxx.getlist request.method request.COOKIES request.body ...
分类:
其他好文 时间:
2017-03-10 12:15:10
阅读次数:
143
转自:http://www.laruence.com/2009/11/13/1138.html PATH_INFO是一个CGI 1.1的标准,经常用来做为传参载体. 比如, 我们可以使用PATH_INFO来代替Rewrite来实现伪静态页面, 另外不少PHP框架也使用PATH_INFO来作为路由载体 ...
分类:
Web程序 时间:
2017-03-04 18:40:45
阅读次数:
217