note 47350 added to function.chmod

From: Date: Fri, 12 Nov 2004 15:10:16 +0000
Subject: note 47350 added to function.chmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-80441@lists.php.net to get a copy of this message
about chmod, Problably you have a local server to simulate your scripts before upload them to the server. No matter if you use Apache under windows or IIS , a chmod instruction like chmod($filename,O777) may not work because windows does not handle that kind of permission's format. So being in your local server, if you have a only read file and you try to erase, it will show that you dont have permissions even when you have already executed your chmod instrucction correctly. Just up the script it must work well in your internet server if it is a linux machine sobre chmod, Probablemente usas un servidor local para probar tus scripts antes de subirlos al servidor en internet. No importa si usas Apache bajo windows o IIS, una instruccion como chmod(nombre_archivo,O777) podrá no trabajar por que windows no maneja esa estructura para definir los permisos. Estando en tu servidor local, si tienes un archivo de solo lectura y tratas de borrarlo, se mostrará un error diciendo que no tienes permisos aún despúes de haber ejecutado chmod correctamente. Sube tu script, si tu servidor es una máquina linux, el script trabajará sin problemas en internet. Fernando Yepes C. ---- Manual Page -- http://www.php.net/manual/en/function.chmod.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47350 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47350&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47350&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80441) next »