note 27047 added to function.ftp-site
| From: | to at mail dot isec dot pt | Date: | Thu, 21 Nov 2002 11:20:22 +0000 |
| Subject: | note 27047 added to function.ftp-site | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39795@lists.php.net to get a copy of this message | ||
Hya,
Recently I had to work with FTP over PHP, since I didn't found any help about this topic I
decided to post this here. If you need to chmod one file, I tested this on the ftp server using a
ftp client and after I knew that the ftp server supported chmod I used the following commands:
$upload = ftp_put($conn_id, "/home/to/public_html/index.php", $source_file, FTP_ASCII);
$ch=@ftp_site($conn_id,"chmod 755 /home/to/public_html/index.php");
Hope this help!
Tó
--
http://www.php.net/manual/en/function.ftp-site.php
http://master.php.net/manage/user-notes.php?action=edit+27047
http://master.php.net/manage/user-notes.php?action=delete+27047
http://master.php.net/manage/user-notes.php?action=reject+27047