using System.Drawing;using System.IO;using System.Drawing.Imaging; private void AddTextToImg(string fileName,string text) { i...
分类:
Web程序 时间:
2014-08-18 18:22:42
阅读次数:
248
方法一:调用cmd 的ping命令private static string CmdPing(string strIp){Process p = new Process(); p.StartInfo.FileName = "cmd.exe";//设定程序名p.StartInfo.UseShellEx...
分类:
其他好文 时间:
2014-08-18 18:21:12
阅读次数:
180
eoiioe linux下解压命令大全 .tar 解包:tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!) ——————————————— .gz 解压1:gunzip FileName.gz 解压2:gzip ...
分类:
系统相关 时间:
2014-08-18 16:38:23
阅读次数:
271
# !/usr/bin/python# Filename:tcfg.pyimport ConfigParserconfig = ConfigParser.ConfigParser()config.read("/home/xxx/xxx/tcfg.ini")printsecs = config.sec...
分类:
编程语言 时间:
2014-08-18 12:25:34
阅读次数:
178
vi /etc/nginx/conf.d/default.conf # 删除如下部分的注释, #把一下倒数第二行的/scripts改为你工程目录,如: # fastcgi_param ?SCRIPT_FILENAME ?/usr/share/nginx/html$fastcgi_script_name; location ~ \.p...
分类:
Web程序 时间:
2014-08-18 10:57:14
阅读次数:
246
以前用Response.WriteFile(filename),但当遇到大文件时无法完整下载。该方法最大的问题,它不是直接将数据抛到客户端,而是在服务器端(IIS)上缓存。当下载文件比较大时,服务器压力会很大,iis虽然支持2G大小的文件下载,但当文件上了很多M时,由于服务器以及网络等因素的影响,异...
分类:
其他好文 时间:
2014-08-18 10:34:33
阅读次数:
209
【1】文件的打开、关闭函数:打开文件 $fopen 关闭文件 $fclose语法:打开文件fd = $fopen(filename, type);关闭文件$fclose(fd);说明:filename 为string类型,指定所需要打开的文件type为打开文件方式,主要有:"r":以只读方式打开.....
分类:
其他好文 时间:
2014-08-17 18:29:02
阅读次数:
169
问题描写叙述:用swfupload上传文件,含有中文名称的文件上传会报错,我用的是获取FileItem对象,用FileItem对象的getName()方法获取文件名会乱码,试着用request.setCharacterEncoding("UTF-8")及fileName=newString(file...
分类:
其他好文 时间:
2014-08-17 10:23:51
阅读次数:
134
1. 打开动态链接库: #include void *dlopen(const char *filename, int flag); 该函数返回操作句柄,如: void *pHandle = dlopen(strSoFilePath, RTLD_LAZY);2. 取动态对象地址: #include....
分类:
其他好文 时间:
2014-08-16 19:42:30
阅读次数:
155
公司每个project代码中,都有一个Config类,作为模块启动的配置。其实现如下struct Config { int num; char * file_name; int load_from_file(const char* filename);}int Config::load_from_f...
分类:
其他好文 时间:
2014-08-16 16:22:30
阅读次数:
192