PHP 関数 fwrite() で問題が発生することが予想されます
$filename = 'rss.xml';
if (file_exists($filename)) {
echo "The file $filename exists";
}
if (is_writable($filename)) {
$fp = fopen($filename, 'w');
fwrite($fp, $feed);
fclose($fp);
}
else{
echo '<br />not writable..';
if(!is_readable($filename)){
echo ' and not readable!';
}
}
スクリプトを実行すると、次のように返されます。
The file rss.xml exists
not writable..
rss.xml の chmod は 755 で、セーフモードはオフです。
私は (mt) mediatemple.com で (dv) でホストされており、(gs) ソリューションでホストされていたとき、スクリプトは正常に動作していました。
何が悪いのかわかりません=/