🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: chile.comp.programacion
2 messages
2 total messages Started by hernan Fri, 17 Jul 2009 18:17
permission denied.......
#460
Author: hernan
Date: Fri, 17 Jul 2009 18:17
122 lines
5493 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0024_01CA06E9.4D619D70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Estimados y estimadas

Estoy, por deserci=F3n del webmaster, tratando de subir un archivo y me =
sale el siguiente mensaje...=20

Warning: copy(../../talleres/docs/reflexion2.doc) [function.copy]: =
failed to open stream: Permission denied in =
/home/profisic/public_html/admin/talleres/talleres.php on line 39

La l=EDnea 39 es la que est=E1 con rojo, a continuaci=F3n. =BFAlguien =
podr=EDa darme una pista de c=F3mo solucionar el problema?

Saludos y muchas gracias

hernan



include("../globales.php");
include("../funciones.php");

$link=3Dmysql_connect($hostName, $userName, $password);

//selecciona la bd
mysql_select_db ($base, $link);
$url=3D"admin_enlaces.php";

   if($n_estado=3D=3D"on"){
  $n_estado=3D1;
   }
   else{
  $n_estado=3D0;
   }
   $fecha=3Ddate("y-m-d");=20

if(isset($ing)){
 $url=3D"index.php";
 $path=3D"../../talleres/docs/".$archivo_name;
    if(!copy($archivo, $path)){=20
  msj("Aviso", "Error al copiar el archivo", $url);
 }=20

   $tabla=3D"talleres"; =20
   $sql=3D"INSERT INTO talleres (titulo, archivo) VALUES =
('$n_titulo','$archivo_name')";
   InsertRow( $sql, $link, $tabla, $url ) ;   
------=_NextPart_000_0024_01CA06E9.4D619D70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2 face=3DArial>Estimados y estimadas</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Estoy, por deserci=F3n del webmaster, =
tratando de=20
subir un archivo y me sale el siguiente mensaje... </FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Warning: =
copy(../../talleres/docs/reflexion2.doc)=20
[function.copy]: failed to open stream: Permission denied in=20
/home/profisic/public_html/admin/talleres/talleres.php on line=20
39<BR></FONT></DIV>
<DIV><FONT size=3D2 face=3DArial>La l=EDnea 39 es la que est=E1 con =
rojo, a=20
continuaci=F3n. =BFAlguien podr=EDa darme una pista de c=F3mo solucionar =
el=20
problema?</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Saludos y muchas gracias</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>hernan</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2=20
face=3DArial>include("../globales.php");<BR>include("../funciones.php");<=
/FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>$link=3Dmysql_connect($hostName, =
$userName,=20
$password);</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>//selecciona la bd<BR>mysql_select_db =
($base,=20
$link);<BR>$url=3D"admin_enlaces.php";</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>&nbsp;&nbsp;=20
if($n_estado=3D=3D"on"){<BR>&nbsp;&nbsp;$n_estado=3D1;<BR>&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp; else{<BR>&nbsp;&nbsp;$n_estado=3D0;<BR>&nbsp;&nbsp;=20
}<BR>&nbsp;&nbsp; $fecha=3Ddate("y-m-d");&nbsp;</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2=20
face=3DArial>if(isset($ing)){<BR>&nbsp;$url=3D"index.php";<BR>&nbsp;$path=
=3D"../../talleres/docs/".$archivo_name;<BR><FONT=20
color=3D#ff0000>&nbsp;&nbsp;&nbsp; if(!copy($archivo, $path)){</FONT> =
<BR>&nbsp;=20
msj("Aviso", "Error al copiar el archivo", $url);<BR>&nbsp;} =
</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>&nbsp;&nbsp; $tabla=3D"talleres";&nbsp; =

<BR>&nbsp;&nbsp; $sql=3D"INSERT INTO talleres (titulo, archivo) VALUES=20
('$n_titulo','$archivo_name')";<BR>&nbsp;&nbsp; InsertRow( $sql, $link, =
$tabla,=20
$url ) ;&nbsp;&nbsp; </FONT></DIV></BODY></HTML>

------=_NextPart_000_0024_01CA06E9.4D619D70--
Re: permission denied.......
#461
Author: Marious
Date: Sun, 19 Jul 2009 02:19
36 lines
2234 bytes
On 07/17/2009 02:17 PM, hernan wrote:
> Estimados y estimadas
> Estoy, por deserción del webmaster, tratando de subir un archivo y me
> sale el siguiente mensaje...
> Warning: copy(../../talleres/docs/reflexion2.doc) [function.copy]:
> failed to open stream: Permission denied in
> /home/profisic/public_html/admin/talleres/talleres.php on line 39
> La línea 39 es la que está con rojo, a continuación. ¿Alguien podría
> darme una pista de cómo solucionar el problema?
> Saludos y muchas gracias
> hernan
> include("../globales.php");
> include("../funciones.php");
> $link=mysql_connect($hostName, $userName, $password);
> //selecciona la bd
> mysql_select_db ($base, $link);
> $url="admin_enlaces.php";
> if($n_estado=="on"){
> $n_estado=1;
> }
> else{
> $n_estado=0;
> }
> $fecha=date("y-m-d");
> if(isset($ing)){
> $url="index.php";
> $path="../../talleres/docs/".$archivo_name;
> if(!copy($archivo, $path)){
> msj("Aviso", "Error al copiar el archivo", $url);
> }
> $tabla="talleres";
> $sql="INSERT INTO talleres (titulo, archivo) VALUES
> ('$n_titulo','$archivo_name')";
> InsertRow( $sql, $link, $tabla, $url ) ;

Apache no tiene permiso de escritura en el directorio.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads