Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/05/2014, 15:01
Avatar de ema_cs_2010
ema_cs_2010
 
Fecha de Ingreso: noviembre-2010
Mensajes: 8
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Problema al leer archivo local

Sigue pasando lo mismo
Código PHP:
// $chatbox_file['other'] //tiene un valor constante

if(is_file($chatbox_file['other']))
{
    
$others_data file_get_contents($chatbox_file['other']);
    if(
$others_data !== false)
        
$others_data unserialize($others_data);
    else 
file_put_contents("error.txt""...");
}
else if(!
is_array($others_data)) $others_data = array( 'flood_time' => 0'flood_userid' => 0,  'flood_count' => 0'global_id' => );
// ... otras cosas que pueden modificar el array ...
file_put_contents($chatbox_file['other'], serialize($others_data)); 
cada tanto se crea "error.txt" y se reinicia el array