这两个函数要用在同一个服务器的..你两个服务器都不同..用FTP的函数吧..
解决方案 »
- 模拟登陆中出现的问题
- 求onmouseover innerHTML代码修正
- 求一段PHP程序,使得菜单:当前页是红色按钮,其它是蓝色
- 请问这句话什么意思啊?
- 首页速度太慢, 该如何改进呢
- http://www.51shop.org/ 我的个人网站啊,刚刚出炉,看看啊,提点意见啊。欢迎网站进行友情链接
- PHP的问题.....................
- 关于SOCKET的问题,如何安装socket server,如何启动 socket server,具体的配置是怎么样的?
- 类型强制转换的问题
- PHP的preg_replace函数的问题
- 求一个产品分类的
- 无法获取$file=file("seo/$sa.txt");
$local_file = 'local.zip';
$server_file = 'server.zip';
// connect to the FTP server
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// try to download
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_file\n";
} else {
echo "There was a problem\n";
}
// close the connection
ftp_close($conn_id);
猜想可能是IP地址中的点解析不出来的原因.