$url = 'http://gdata.youtube.com/feeds/api/playlists/blabla';
$fp = fopen($url, 'r');
$buffer='';
if ($fp) {
while (!feof($fp))
$buffer .= fgets($fp, 1024);
fclose($fp);
$buff=stripslashes($buffer);
$old = umask(0);
file_put_contents("si.xml", $buff);
chmod("si.xml", 0777);
umask($old);
私が得る警告は
Warning: file_put_contents(si.xml) [function.file-put-contents]: failed to open stream
Warning: chmod() [function.chmod]: Permission denied
ディレクトリファイル全体のアクセス許可を手動で 777 に設定しましたが、使用しません。
Windowsでfilezillaを使用しています