note 33574 added to function.ftp-chmod
| From: | Loup_iotte at pagesperso dot org | Date: | Tue, 01 Jul 2003 04:07:25 +0000 |
| Subject: | note 33574 added to function.ftp-chmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51248@lists.php.net to get a copy of this message | ||
si ftp_chmod ne fonctionne pas essayez de faire comme ceci :
$ftp_ip="ip_of_my_serv_ftp";
$ftp_login="my_login";
$ftp_pass="my_pass";
$ftp_file="/www/motd.txt";
$conn_id=ftp_connect($ftp_ip);
$login_result=@ftp_login($conn_id, $ftp_login, $ftp_pass);
<!-- C'est ici que ça se passe -->
$chmod_cmd="CHMOD 0666 ".$ftp_file;
$chmod=ftp_site($conn_id, $chmod_cmd);
<!-- C'est là que ça s'est passé -->
ftp_quit($conn_id); // on quitte proprement
Loup_iotte
----
Manual Page -- http://www.php.net/manual/en/function.ftp-chmod.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33574
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33574&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33574&report=yes