一、创建ftp或者远程访问地址;
二、使用fopen写入文件内容;
<?php
$handle = fopen("/home/rasmus/file.txt", "r");
$handle = fopen("/home/rasmus/file.gif", "wb");
$handle = fopen("http://www.example.com/", "r");
$handle = fopen("ftp://user:password@example.com/somefile.txt", "w");
fwrite($handle , $content);
?>
将baiurl改成duip即可,前提是zhi http://ip方式dao能zhuan正常访shu问
网友评论