downloads | documentation | faq | getting help | mailing lists | reporting bugs | sites | links | my 
search for in the  
view the version of this page
Last updated: Thu, 21 Aug 2003


(PHP 5 CVS only)

ftp_chmod -- Set permissions on a file via FTP


string ftp_chmod ( resource ftp_stream, int mode, string filename)

Sets the permissions on the remote file specified by filename to mode given as an octal value.

Returns the new file permissions on success or FALSE on error.

See also chmod().

add a note add a note User Contributed Notes
Loup_iotte at pagesperso dot org
01-Jul-2003 01:07
if ftp_chmod doesn't work, jusdt try this :


$login_result=@ftp_login($conn_id, $ftp_login, $ftp_pass);

<!-- Here's the hack -->
$chmod_cmd="CHMOD 0666 ".$ftp_file;
$chmod=ftp_site($conn_id, $chmod_cmd);



 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Sat 01 Nov 2003 04:13:36 EST EST