一、定义Cookie存储路径必须使用绝对路径$cookie_jar=dirname(__FILE__)."/pic.cookie";//$cookie_file=dirname(__FILE__).‘/cookie.txt‘;//$cookie_file=tempnam("tmp","cookie");二、获取Cookie$url="http://1.2.3.4/";$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);cu..
分类:
Web程序 时间:
2016-02-25 12:08:33
阅读次数:
167
<VirtualHost*:80>DocumentRoot"/tmp/tmp"ServerNametmp.com<Directory/tmp/tmp/>Orderallow,denyDenyfromall</Directory>创建配置中提到的目录#mkdir/tmp/tmp这时候,我们用ip去访问Forbidden
分类:
其他好文 时间:
2016-02-25 12:08:04
阅读次数:
128
When I mount CIFS on board, it encountered error as below: # mount -t cifs //192.168.1.28/98share /tmp -o user=name,pass=code CIFS VFS: Send error in
分类:
其他好文 时间:
2016-02-24 22:25:15
阅读次数:
180
在linux下用vi或vim打开Test.java文件时[root@localhosttmp]#viTest.java出现了如下信息:E325:ATTENTION
Foundaswapfilebythename".Test.java.swp"ownedby:rootdated:WedDec713:52:562011filename:/var/tmp/Test.java
modified:YES
username:roothostname:localhost
processID..
分类:
系统相关 时间:
2016-02-24 15:43:52
阅读次数:
309
#验证码函数def yzm(i): code = [] for i in range(i): if i == random.randint(1,3): code.append(str(random.randint(1,9))) else: tmp = random.randint(65,90) co
分类:
编程语言 时间:
2016-02-22 17:30:49
阅读次数:
159
命令的链接 1.管道 2.xargs --> 作为stdin 常用: find /etc -name c*.conf | xargs tar -czf /tmp/test.tgz 3.- 减号的用法 :前者的标准输出作为后者的标准输入. 通常用于tar tar -czf - /home | tar
分类:
数据库 时间:
2016-02-21 17:08:01
阅读次数:
175
用while循环进行求解,代码如下:intContinuousMultiplication(intnum){ inttmp=1; while(num) { tmp=tmp*num; num--; } returntmp;}intmain(){ inti=0,allnum=0; for(i=1;i<=20;i++) { allnum+=ContinuousMultiplication(i); } cout<<allnum<<endl; system(..
分类:
其他好文 时间:
2016-02-19 14:31:44
阅读次数:
239
Item 48: Be aware of template metaprogramming.
模板元编程(Template Metaprogramming,TMP)就是利用模板来编写那些在编译时运行的C++程序。 模板元程序(Template Metaprogram)是由C++写成的,运行在编译器中的程序。当程序运行结束后,它的输出仍然会正常地编译。
C++并不是为模板元编程设计的...
分类:
其他好文 时间:
2016-02-19 12:44:17
阅读次数:
175
两种方法[1]用find命令和其action来实现[2]用rm直接实现$ cd /tmp/xxx$ rm -rf `find . -name .svn`就可以实现了。删除SVN目录及从服务器端删除SVN版本库文件方法详解 在学习SVN的过程中,你可能会遇到这样的问题,如何删除SVN目录?如何从服务器
分类:
其他好文 时间:
2016-02-18 17:58:32
阅读次数:
120
MySQL 系统会在内存(MEMORY)和磁盘(MyISAM)中建立临时表,如何能知道在磁盘中建立了多少临时表以及在内存中建立多少临时表呢?你可以通过下面命令获知: ? 1 2 3 4 5 6 7 mysql> SHOW GLOBAL STATUS LIKE 'Created_tmp%tables'
分类:
数据库 时间:
2016-02-17 23:59:27
阅读次数:
383