Tema: error fopen
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/01/2011, 18:59
Avatar de luzzifer
luzzifer
 
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 17 años, 2 meses
Puntos: 3
Respuesta: error fopen

esta con todos los permisos mira este es el codigo en la linea 246

Código PHP:
function read($filename, $incpath = false, $amount = 0, $chunksize = 8192, $offset = 0)
{
// Initialize variables
$data = null;
if(
$amount && $chunksize > $amount) { $chunksize = $amount; }
>>>>
linea 246<<<<if (false === $fh = fopen($filename, 'rb', $incpath)) {
JError::raiseWarning(21, 'JFile::read: '.JText::_('Unable to open file') . ": '$filename'");
return 
false;
}
clearstatcache();
if(
$offset) fseek($fh, $offset);
if (
$fsize = @ filesize($filename)) {
if(
$amount && $fsize > $amount) {
$data = fread($fh, $amount);
} else {
$data = fread($fh, $fsize);
}
} else {
$data = '';
$x = 0;
// While its:
// 1: Not the end of the file AND
// 2a: No Max Amount set OR
// 2b: The length of the data is less than the max amount we want
while (!feof($fh) && (!$amount || strlen($data) < $amount)) {
$data .= fread($fh, $chunksize);
}
}