");';$of = fopen('js/466yy_mrt_img'.$a.'.js','w');//创建(文件夹需是已有文件夹)if($of){fwrite($of,$content);//把执行文件的结果写入文件}fclose($of);$a++;$b++;}echo "已生成";?>/*/*...
分类:
Web程序 时间:
2015-04-23 12:49:28
阅读次数:
142
fread和fwrite可以对所有文件进行操作,它们直接操作的是二进制数位。fopen函数使用返回值表示它打开的文件。fopen函数打开文件不一定成功。把fopen的返回值当做boolean使用时,如果为假,表示打开文件失败。反之,打开文件成功。fopen需要两个实参,第一个实参代表要打开的文件的路...
分类:
其他好文 时间:
2015-04-22 20:32:44
阅读次数:
104
晚上想在HTM10.0版本上跑单视点的全I帧情况。以为直接改配置属性局可以了呢。结果一直报错。错误如下:
本来就想着:ReconFile 文件不是生成的么,为什么一直报fopen错误呢。在群里咨询了大牛,才得以解决。
解决办法:
HTM可以向下兼容的HEVC的,所以需要把编码器设置为单视点HEVC才可以,不然就默认为多视点彩色加深度 。
所以只...
分类:
Web程序 时间:
2015-04-21 00:29:36
阅读次数:
138
0x01spider抓取URL 采用的是file_get_contents()/fopen()函数,利用正则匹配的方式(貌似最简单方式了,记录下后续添加)0x02usage:php spider.php www.baidu.com 结果保存在www.baidu.com文件中Code:--------...
分类:
Web程序 时间:
2015-04-20 12:49:46
阅读次数:
139
r+: Open for reading and writing. The stream is positioned at the beginning of the file.w+:Open for reading and writing. The file is created if it doe...
分类:
其他好文 时间:
2015-04-19 01:08:50
阅读次数:
114
1. fopen, fread1 if($file = fopen("http://www.example.com/", "r")) {2 while(!feof ($file))3 $data .= fread($file, 1024);4 }5 fclose($file)...
分类:
Web程序 时间:
2015-04-18 20:32:55
阅读次数:
155
#include "stdafx.h"#include #includeint main(){ FILE *fp; char ch; char *str = "www.cskaoyan.com"; if(fopen_s(&fp,"ReadMe.txt","at+") != N...
分类:
其他好文 时间:
2015-04-17 17:24:22
阅读次数:
117
文件的操作1,提高速度 使用文件指针2 文件指针与磁盘文件建立联系,以后对文件操作都将通过文件指针来进行。 fopen(文件名,使用文件方式) 文件打开不成功 将返回一个空指针NULL 文件使用方式 r w rb wb fgetc() getc() 从指定文件中一次读取一个字符 ...
分类:
其他好文 时间:
2015-04-17 15:31:42
阅读次数:
123
#include "stdafx.h"#include #include int main(){ FILE *readfile,*writefile; char ch; fopen_s(&readfile,"ReadMe.txt","r"); fopen_s(&writef...
分类:
其他好文 时间:
2015-04-17 15:28:06
阅读次数:
123
function writeLog($file, $msg, $mode='a+') { $fp = fopen($file, $mode); if(flock($fp, LOCK_EX)) { fwrite($fp, $msg); fflush($fp); flock($fp,...
分类:
Web程序 时间:
2015-04-16 17:14:07
阅读次数:
143