note 14894 added to function.chmod.php

From: Date: Mon, 20 Aug 2001 11:22:20 +0000
Subject: note 14894 added to function.chmod.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16909@lists.php.net to get a copy of this message
It looks like chmod does not work with ftp connections when PHP's Safe Mode is enabled. Here you have another way to use chmod without using ftp_connect(); ( Español: Parece que chmod no funciona en conexiones ftp cuando PHP's Safe Mode está habilitado, aquí teneis otra manera de usar chmod sin usar ftp_connect(); ) <? $noftp = fsockopen("ftp.example.com", 21, $errno, $errstr, 60) or die("Fallo de Conexión"); socket_set_blocking($noftp, false); fputs($noftp, "USER user\n"); fputs($noftp, "PASS password\n"); sleep(1); fputs($noftp, "SITE chmod 0777 /www/example.../file.xxx\n"); sleep(1); fclose($noftp); ?> http://php.grn.es/manual/es/function.chmod.php

« previous php.notes (#16909) next »