Ubuntu Fopen no pudo abrir la corriente: permiso denegado
$ sudo chmod -R 777 /path/to/directory
Johnvict
$ sudo chmod -R 777 /path/to/directory