2010-04-28 96 views

回答

35

使用file_put_contents()

$image = file_get_contents('http://www.affiliatewindow.com/logos/1961/logo.gif'); 
file_put_contents('./myDir/myFile.gif', $image); 
3

如果你使用PHP 5中,你可以使用file_put_contents

file_put_contents('/path/to/file.dat', $data);

相關問題