Return to Snippet

Revision: 25731
at April 7, 2010 06:48 by jackoder


Initial Code
<code>

// Define variables
$server = "abc.com" ;
$user = "abcuser" ;
$password = "abspass" ;

// Create Ftp Connection via FTP
$connection = ftp_connect("$server");

// Login to your system
ftp_login($connection, $user, $password);

// Create a directory
ftp_mkdir($connection, dir/dir);

// Change permissions of created directory
ftp_site($connection, 'CHMOD 777, dir/dir');

// Close FTP connection
ftp_close($connection);

</code>

I hope it will be useful for your projects.

Initial URL

                                

Initial Description
Hello friends.

I've create this script for you to change directories permissions without connecting them via Ftp Prog.

Thanks.

[En Yeni Oyunlar](http://www.yeni-oyun.com)

Initial Title
Change Permissions of Remote Directories

Initial Tags
php

Initial Language
PHP