🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #460

permission denied.......

#460
From: 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--
Technical Details
Message-ID: <h3qf7p$8te$1@jagger.tie.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.tie.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: e499fe1f24,1d79cffab4c4dbb0,start
X-Google-Attributes: gide499fe1f24,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.tie.cl!not-for-mail
From: "hernan" <hverdugo@gemial.com>
Newsgroups: chile.comp.programacion
Subject: permission denied.......
Date: Fri, 17 Jul 2009 14:17:22 -0400
Organization: Telefonica Internet Empresa
Lines: 123
Message-ID: <h3qf7p$8te$1@jagger.tie.cl>
NNTP-Posting-Host: 165-207-223-201.adsl.terra.cl
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_0024_01CA06E9.4D619D70"
X-Trace: jagger.tie.cl 1247854649 9134 201.223.207.165 (17 Jul 2009 18:17:29 GMT)
X-Complaints-To: news@jagger.tie.cl
NNTP-Posting-Date: Fri, 17 Jul 2009 18:17:29 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049