🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #15214

Crear Fichero, Escribir y Cambiar Permisos en PHP

#15214
From: Jose Luis
Date: Sat, 29 Jul 2000 00:00
19 lines
1074 bytes
Estimados amigos.

Tengo un peque�o problema con PHP, necesito crear un fichero (test.txt),
escribir en �l una cadena ($cont) y cambiarle los permisos para
que otro usuario pueda escribir en �l posteriormente desde el web
(chmod 0777).

He intentado:

  $file = fopen($fileName,"w");
  fwrite($file,$cont);
  fclose($file);

  chmod($fileName, 0777);

Pero no funciona, mi pregunta es c�mo debo hacerlo.

--
Saludos y Gracias. Jose Luis
Technical Details
Message-ID: <8lubll$rf3$1@talia.mad.ttd.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 104e75,2c95aa0157f739d6,start
X-Google-Attributes: gid104e75,public
X-Google-Thread: f86c8,2c95aa0157f739d6,start
X-Google-Attributes: gidf86c8,public
From: "Jose Luis" <joseluis@REMOVEMEferca.com>
Subject: Crear Fichero, Escribir y Cambiar Permisos en PHP
Date: 2000/07/29
Message-ID: <8lubll$rf3$1@talia.mad.ttd.net>
X-Deja-AN: 652114760
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Organization: Telefonica Transmision de Datos
X-MSMail-Priority: Normal
Newsgroups: es.comp.os.linux.programacion,esp.comp.so.linux