icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP FTP Help

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 17th, 2005, 6:13 PM   #19 (permalink)
Surpass Fan
Comfy Contributor
 
HostGlory's Avatar
 
Joined in May 2004
Lives in South Dakota
Hosted on Liquid
132 posts
Gave thanks: 0
Thanked 0 times
Out of the 3 messages, I'm getting this one: message("Directory was created, but unable to chmod. Please contact support!", $php_errormsg);

And no, ftp_pwd($this->CONN_ID) does not equal the $full path. The full path is what you see in the error message. The ftp_pwd($this->CONN_ID) is only the home directory of the current ftp user, which in this case would be /brandon.
__________________
Thanks!
Brandon

Dedicated Servers:
liquid.hostglory.com

www.modmyspace.com
www.uploadsystem.com
HostGlory is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 17th, 2005, 6:18 PM   #20 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
OK, well I noticed that the ftp_mkdir makes the following directory:

ftp_pwd($this->CONN_ID) . "/" . $directory

But then you're trying to CHMOD this directory:

$fullpath . $directory

Have you checked through regular ftp to see where the folders were created?
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 17th, 2005, 6:24 PM   #21 (permalink)
Surpass Fan
Comfy Contributor
 
HostGlory's Avatar
 
Joined in May 2004
Lives in South Dakota
Hosted on Liquid
132 posts
Gave thanks: 0
Thanked 0 times
You made me think from the user's perspective that I don't need to use the full path, but just the path of the user's home directory. So, in the end all I needed to do is use: ftp_pwd($this->CONN_ID) . "/" . $directory

So, it works now. Thanks once again!
__________________
Thanks!
Brandon

Dedicated Servers:
liquid.hostglory.com

www.modmyspace.com
www.uploadsystem.com
HostGlory is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 17th, 2005, 6:28 PM   #22 (permalink)
All Ur Base R Belong 2 Us
Excelling Contributor
 
mr_fern's Avatar
 
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
Glad to hear it
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On