🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #461

Re: permission denied.......

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

Show Full Headers
Complete Article Headers
X-Google-Thread: e499fe1f24,1d79cffab4c4dbb0
X-Google-Attributes: gide499fe1f24,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: Marious <sinspam@tampocoexiste.ivn.cl>
Newsgroups: chile.comp.programacion
Subject: Re: permission denied.......
Date: Sat, 18 Jul 2009 22:19:48 -0400
Organization: Varios
Lines: 36
Message-ID: <h3tvsv$10c$1@news.nivel5.cl>
References: <h3qf7p$8te$1@jagger.tie.cl>
NNTP-Posting-Host: 190.162.114.173
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1247970015 1036 190.162.114.173 (19 Jul 2009 02:20:15 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sun, 19 Jul 2009 02:20:15 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11
In-Reply-To: <h3qf7p$8te$1@jagger.tie.cl>