note 47350 deleted from function.chmod by cmb

From: Date: Fri, 26 Apr 2019 16:37:47 +0000
Subject: note 47350 deleted from function.chmod by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210673@lists.php.net to get a copy of this message
Note Submitter: fernando at gym-group dot com ---- 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.

« previous php.notes (#210673) next »