2009-12-02 3 views

답변

3
$contents = file_get_contents('http://test.com/testfile'); 
if($contents) { 
    $file = '/root/xml/test.xml'; 
    unlink($file); 
    file_put_contents($contents, $file); 
} 
3

가정 올바른 구성,

$file = file_get_contents('http://test.com/thisfile'); 
if($file) { 
    unlink('/root/xml/test.xml'); 
    file_put_contents('/root/xml/test.xml'); 
} 

또는 그 라인을 따라 뭔가.

관련 문제