bluewalrus
12-17-2008, 12:18 AM
So I made this script and got it to make a directory and then another directory inside that one. It's not writing in the permissions I want it to its writing it as 755 as opposed to 777 that I want . Anyways that's not the big problem... The big problem is now my ftp is telling me I don't have persmission to delete the files it wrote. haha? This is my ftp output and below that my php code. Thanks for any help you can offer. Don't know if this is actually the php or just an ftp/ server problem.
19:13:28 Status: Retrieving directory listing...
19:13:28 Command: PASV
19:13:28 Response: 227 Entering Passive Mode (76,163,112,2,134,233).
19:13:28 Command: LIST
19:13:28 Response: 150 Opening ASCII mode data connection for file list
19:13:28 Response: 226 Transfer complete
19:13:28 Status: Directory listing successful
19:13:42 Status: Set permissions of '/bluewalrus.net/travelreports/fff2/images' to '777'
19:13:42 Command: SITE CHMOD 777 images
19:13:42 Response: 550 CHMOD 777 images: Operation not permitted
19:13:45 Command: RMD images
19:13:45 Response: 550 images: Permission denied
19:13:46 Status: Retrieving directory listing...
19:13:46 Command: PASV
19:13:46 Response: 227 Entering Passive Mode (76,163,112,2,206,124).
19:13:46 Command: LIST
19:13:46 Response: 150 Opening ASCII mode data connection for file list
19:13:46 Response: 226 Transfer complete
19:13:46 Status: Directory listing successful
<?php
$filename = $_POST['files'];
$filesgo = 'travelreports/' . $filename;
mkdir($filesgo, 0777);
$filesin = $filesgo . "/images";
mkdir($filesin, 0777);
?>
19:13:28 Status: Retrieving directory listing...
19:13:28 Command: PASV
19:13:28 Response: 227 Entering Passive Mode (76,163,112,2,134,233).
19:13:28 Command: LIST
19:13:28 Response: 150 Opening ASCII mode data connection for file list
19:13:28 Response: 226 Transfer complete
19:13:28 Status: Directory listing successful
19:13:42 Status: Set permissions of '/bluewalrus.net/travelreports/fff2/images' to '777'
19:13:42 Command: SITE CHMOD 777 images
19:13:42 Response: 550 CHMOD 777 images: Operation not permitted
19:13:45 Command: RMD images
19:13:45 Response: 550 images: Permission denied
19:13:46 Status: Retrieving directory listing...
19:13:46 Command: PASV
19:13:46 Response: 227 Entering Passive Mode (76,163,112,2,206,124).
19:13:46 Command: LIST
19:13:46 Response: 150 Opening ASCII mode data connection for file list
19:13:46 Response: 226 Transfer complete
19:13:46 Status: Directory listing successful
<?php
$filename = $_POST['files'];
$filesgo = 'travelreports/' . $filename;
mkdir($filesgo, 0777);
$filesin = $filesgo . "/images";
mkdir($filesin, 0777);
?>