Hi,
I'm expecting an issue with the PHP function 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!';
}
}
Once executed the script return :
The file rss.xml exists
not writable..
chmod for rss.xml is 755 and safemode is off.
I'm hosted at (mt) mediatemple.com on a (dv) and the script was working fine when I was hosted on a (gs) solution.
I can't find what's wrong =/