如果是配置文档的话应该如何实现?
_FTP_FileOpen的说明如下,
_FTP_FileOpen($hConnect, $lpszFileName [, $dwAccess = 0x80000000 [, $dwFlags = 2 [, $dwContext = 0]]])
我不清楚$dwAccess应该如何使用。
附部分代码:$fFilesize=_FTP_FileGetSize($fConnect,$NetPathResult)
$fFileOpen1=_FTP_FileOpen($fConnect,$NetPathResult)
$lFileOpen1=FileOpen($SaveDir & '\' & $NetPathResult,2+8+16)
while 1
$fFileRead=_FTP_FileRead($fFileOpen1,256 * 1024);1024 *1024)
If @error = -1 Then exit loop
$lFIlewrite=FileWrite($lFileOpen1,$fFileRead)
wend
FileClose($lFileOpen1)
_FTP_FileClose($fFileOpen1)
|