一弓乙、創(chuàng)建ftp或者遠(yuǎn)程訪問地址寸莫;
二开仰、使用fopen寫入文件內(nèi)容脐往;
<?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問