PDA

View Full Version : [PHP] Sto usando il feed reader MagpieRSS: conoscete questo errore?!


Matrixbob
22-06-2007, 10:08
ERRORE:

Cache unable to open file for writing: ./cache\308be65e09e780131b71ccc8d002c321
Cache unable to open file for writing: ./cache\f2acf418d98f1d5b991970ebd17f1b98
Cache unable to open file for writing: ./cache\f587c82fc63d7673af9c1506699226b6
Cache unable to open file for writing: ./cache\56628d2cc7cc6724e2ec069b1ed93ae8

Matrixbob
22-06-2007, 10:15
Pare che il server sia un sistema Windows.
Sto provando a modificare:
var $BASE_CACHE = './cache'; // where the cache files are stored

in:
rss_cache.inc

Ma mi sa che dipende da come caz è configurato il Server.

Matrixbob
22-06-2007, 10:23
Eccolo li:

/*=======================================================================*\
Function: set
Purpose: add an item to the cache, keyed on url
Input: url from wich the rss file was fetched
Output: true on sucess
\*=======================================================================*/
function set ($url, $rss) {
$this->ERROR = "";
$cache_file = $this->file_name( $url );
$fp = @fopen( $cache_file, 'w' );

if ( ! $fp ) {
$this->error(
"Cache unable to open file for writing: $cache_file"
);
return 0;
}


$data = $this->serialize( $rss );
fwrite( $fp, $data );
fclose( $fp );

return $cache_file;
}