Thread View: chile.comp.programacion
2 messages
2 total messages
Started by hernan
Fri, 17 Jul 2009 18:17
permission denied.......
Author: hernan
Date: Fri, 17 Jul 2009 18:17
Date: Fri, 17 Jul 2009 18:17
122 lines
5493 bytes
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> </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> </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> </DIV>
<DIV><FONT size=3D2 face=3DArial>Saludos y muchas gracias</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial>hernan</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2=20
face=3DArial>include("../globales.php");<BR>include("../funciones.php");<=
/FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial>$link=3Dmysql_connect($hostName, =
$userName,=20
$password);</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </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> </DIV>
<DIV><FONT size=3D2 face=3DArial> =20
if($n_estado=3D=3D"on"){<BR> $n_estado=3D1;<BR> =20
}<BR> else{<BR> $n_estado=3D0;<BR> =20
}<BR> $fecha=3Ddate("y-m-d"); </FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2=20
face=3DArial>if(isset($ing)){<BR> $url=3D"index.php";<BR> $path=
=3D"../../talleres/docs/".$archivo_name;<BR><FONT=20
color=3D#ff0000> if(!copy($archivo, $path)){</FONT> =
<BR> =20
msj("Aviso", "Error al copiar el archivo", $url);<BR> } =
</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial> $tabla=3D"talleres"; =
<BR> $sql=3D"INSERT INTO talleres (titulo, archivo) VALUES=20
('$n_titulo','$archivo_name')";<BR> InsertRow( $sql, $link, =
$tabla,=20
$url ) ; </FONT></DIV></BODY></HTML>
------=_NextPart_000_0024_01CA06E9.4D619D70--
Re: permission denied.......
Author: Marious
Date: Sun, 19 Jul 2009 02:19
Date: Sun, 19 Jul 2009 02:19
36 lines
2234 bytes
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