不一样,asp通过脚本对象操作。
php直接使用函数操作,跟c语言类似。
详见php手册。
file函数可直接将文件读为数组。
基本方式的例子(不适用file)
$fd = fopen ("inputfile.txt", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
php直接使用函数操作,跟c语言类似。
详见php手册。
file函数可直接将文件读为数组。
基本方式的例子(不适用file)
$fd = fopen ("inputfile.txt", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货