probably not since I created the folder with ftp_mkdir.
The folders I made with mkdir() apparrently didn't belong to me. :queasy:
I also tried to do this
function chmod_11oo10($path, $mod)
{
include("include/ftpinfo.inc.php");
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $user, $pass);
// try to chmod $path directory
if (ftp_site($conn_id, 'CHMOD '.$mod.' '.$ftp_root.$path) !== false) {
$success=TRUE;
}
else {
$success=FALSE;
}
// close the connection
ftp_close($conn_id);
return $success;
}
chmod_11oo10(/modules/ehb_$modname, 0755)
but that didn't seem to work either.
This is how I created the directory ehb_$modname:
function FtpMkdir($path, $newDir) {
include("include/ftpinfo.inc.php");
$connection = ftp_connect($server); // connection
$result = ftp_login($connection, $user, $pass);
// check if connection was made
if ((!$connection) || (!$result)) {
return false;
exit();
} else {
ftp_chdir($connection, $path); // go to destination dir
if(ftp_mkdir($connection, $newDir)) { // create directory
ftp_site($connection, "CHMOD 777 $path/$newDir") or die("FTP SITE CMD failed.");
return $newDir;
} else {
return false;
}
ftp_close($connection); // close connection
}
}
FtpMkdir("/modules","ehb_$modname");