0
data01.xml
, blog02.xml
, data02.xml
등등에서 blog01.xml
을 받고 싶습니다. 다음 코드를 시도하고 있지만 작동하지 않습니다. 뭐가 잘못 되었 니?데이터를 가져 와서 파일에 쓰는 방법은 무엇입니까?
<?php
$v = 1;
do {
$file = "RAW/" . 'data[$v].xml';
$postxml = @file_get_contents($file);
$postxml = str_replace("-", " ", $postxml);
file_put_contents("XML/" . 'blog0[$v].xml', $postxml);
$v++;
} while($v<=5);
?>
와우 당신은 중대하다! 고마워요 :) –
감사합니다 Raghav Sood, 그게 더 convinient. 좋은 하루 되세요. – parascus