1、file_get_contents获取文本或者网页的内容
$filename
[, bool $use_include_path
= false [, resource $context
[, int $offset
= -1 [, int $maxlen
]]]] )
2、file_get_contents把内容写入到文件
$filename
, mixed $data
[, int $flags
= 0 [, resource $context
]] )$filename
, string $mode
[, bool $use_include_path
= false [, resource $context
]] )$handle
, int $length
)fwrite — 写入文件(可安全用于二进制文件)
$handle
, string $string
[, int $length
] )fclose — 关闭一个已打开的文件指针
$handle
)fgets — 从文件指针中读取一行
$handle
[, int $length
] )原文:http://www.cnblogs.com/zzg521/p/4271078.html