tektipsismyfavorite
Technical User
I have a subdomain with the same company and if I ftp into my host, all my domains/subdomains are listed in the same directory. So i figured i can use:
mkdir("../../../sub.domain.com/files/".$directory,0777);
(where "../../../" gets me out of the current folder and into the one above the root folder of "domain.com"
I don't think that is working.
So, I tried:
I also tried MKDIR where CHMOD is and that didn't work either. Any ideas?
mkdir("../../../sub.domain.com/files/".$directory,0777);
(where "../../../" gets me out of the current folder and into the one above the root folder of "domain.com"
I don't think that is working.
So, I tried:
Code:
$server = "ftp.domain.com";
$connection = ftp_connect($server);
$result = ftp_login($connection, $user, $pass);
ftp_site($connection, "CHMOD 777 sub.domain.com/files/$directory") or die("FTP SITE CHMOD failed.");
ftp_close($connection);
I also tried MKDIR where CHMOD is and that didn't work either. Any ideas?