Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2003, 13:33
DotNetDeveloper
 
Fecha de Ingreso: abril-2003
Mensajes: 606
Antigüedad: 21 años
Puntos: 2
Permission Denied?

A ver tengo este código:

Código PHP:
$ultimo=mysql_insert_id();
$fp=fopen("/home/virtual/site71/fst/var/www/html/news/".date("Ymd").$ultimo.".html","w+"); 
y me sale esto:

Cita:
Warning: fopen(/home/virtual/site71/fst/var/www/html/news/2003060624.html) [function.fopen]: failed to create stream: Permission denied in /home/virtual/site71/fst/var/www/html/private/readfile2.php on line 32

Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/site71/fst/var/www/html/private/readfile2.php on line 244
Y los permisos de news son:


drwxrw-rw- 2 usuario 4096 Jun 6 13:26 news

----

Editando

Modifique los permisos a 777 de la carpeta news y funciono, no será eso un problema de seguridad?

Gracias

Última edición por DotNetDeveloper; 06/06/2003 a las 13:35