note 32745 added to function.ftp-site
| From: | (king-joker@bol.com.nr) | Date: | Thu, 05 Jun 2003 19:04:49 +0000 |
| Subject: | note 32745 added to function.ftp-site | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49809@lists.php.net to get a copy of this message | ||
WOW, its very good!
My php version don't suport FTP_CHMOD and i can take this other way....chmod() function on
filesystem don't set chmod because web user no have access on my server.
Look it...
$ftp_server='ftp.urhost.xxx';
$conn_id = ftp_connect($ftp_server);
ftp_chdir($conn_id,"./ur/path/here/"); //change dir to set chmod on correct directory
ftp_site($conn_id, "CHMOD 777 $dir"); //the 777 mode can have all permissions, set ur own.
The $dir is path to set modes
Sorry to my poor english, im brazilian, =) have fun
----
Manual Page -- http://www.php.net/manual/en/function.ftp-site.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32745
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32745&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32745&report=yes