Hola amigos, tengo un problema al utilizar la función file_put_contents() y este es que no me permite modificar un archivo dando el siguiente error:
Cita: Warning: file_put_contents(../archivos/archivo.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/sitio/php/arhivos.php on line 62
Y de hecho el directiorio es válido y el archivo existe, esta es la línea 62:
Código PHP:
$accion = file_put_contents("../archivos/archivo.txt", $cabecera."[;]".$titulo."[;]".$texto);
if ($accion = false) { header("Location: ../../admin/editar/?e"); exit; } // Esto es agregado
El servidor es doméstico y es un Ubuntu Server (LAMP), puede ser que PHP no tenga privilegios suficientes para modificar archivos en home???
Saludos !