| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#10 (permalink) |
|
Demontech Hosting CEO
Excelling Contributor
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
|
Hey, I use /tmp as temp dir for upload without any problems. You shoud check your php settings maybe one or another setting is wrong.
__________________
Sincerely, Demon High Quality Hosting Service Provided By --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
#11 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
Well if the ftp_username for each user doesn't have an existing folder within the uploadsystem folder, that might be why you get the error in the case with "brandon". Maybe you could create a folder temp_uploads, and the destination could be
$destination = $workingdir . "/temp_uploads/" . $_SESSION['ftp_username'] ."_". basename($tmpname); that would append the username to the new filename instead of tmpname being a file in the username folder (which doesn't exist, I'm assuming)
__________________
Nobody doing nothing |
|
|
|
|
|
#12 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in May 2004
Lives in South Dakota
Hosted on Liquid
132 posts
Gave thanks: 0
Thanked 0 times
|
Yes, I do have a folder created for that username. And all users of this program will have their own folder for their username. And, I am using my /tmp folder for uploads, so that shouldn't be a problem.
__________________
Thanks! Brandon Dedicated Servers: liquid.hostglory.com www.modmyspace.com www.uploadsystem.com |
|
|
|
|
|
#13 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
I just noticed something...
"/home/phpconsu/uploadsystem/brandon/phpnZS4UC" is where it's trying to move the file to instead of "/home/phpconsu/public_html/uploadsystem/brandon/phpnZS4UC" minor path error
__________________
Nobody doing nothing |
|
|
|
|
|
#15 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in May 2004
Lives in South Dakota
Hosted on Liquid
132 posts
Gave thanks: 0
Thanked 0 times
|
Ok, it all finally works! Thanks for all the help!
__________________
Thanks! Brandon Dedicated Servers: liquid.hostglory.com www.modmyspace.com www.uploadsystem.com |
|
|
|
|
|
#17 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in May 2004
Lives in South Dakota
Hosted on Liquid
132 posts
Gave thanks: 0
Thanked 0 times
|
I'm resurrecting this post again. I now need help on chmodding a directory, since now I can't upload files to my folders unless the users have correct folder permissions.
Here's the warning I'm getting: Warning: ftp_site(): Could not change perms on /home/phpconsu/public_html/uploadsystem/brandon/pictures: No such file or directory in /home/phpconsu/public_html/uploadsystem/include/classes.inc.php on line 327 And here is the code: PHP Code:
__________________
Thanks! Brandon Dedicated Servers: liquid.hostglory.com www.modmyspace.com www.uploadsystem.com |
|
|
|
|
|
#18 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
Out of your 3 custom response messages, which one are you receiving?
Also, is the working directory in ftp_pwd($connection) the same as the full path? i.e. ftp_pwd($this->CONN_ID) .'/' == $fullpath ?
__________________
Nobody doing nothing |
|
|
|