Welcome Guest, Not a member yet? Register   Sign In
$this->ftp->mkdir not working
#1

[eluser]Unknown[/eluser]
Hello,

i am trying to make a new folder.
In my script, when a new user creates an account, a new folder should be
placed on the server....

but nothing happens:

Code:
$this->load->library('ftp');
$this->ftp->mkdir('uploads/new_folder/');

There is NO error message....

I don´t know what to do...It is perhaps a problem with chmod ?
Should i set the "parent directory" (here 'uploads') to chmod 777 ?

Any ideas,

Greetings,
Julian
#2

[eluser]jedd[/eluser]
Hi Julian and welcome to the CI forums.

[quote author="julianfuerderer" date="1258844156"]Hello,
Should i set the "parent directory" (here 'uploads') to chmod 777 ?
[/quote]

You should certainly try that as part of your basic trouble-shooting process. Why haven't you? Wink

You should also be looking at your web server logs as you hit this page - they should show you any permission breaches.
#3

[eluser]Unknown[/eluser]
Thanks,

up to now i have things changed to this:

Code:
$this->ftp->mkdir('C:/xampp/htdocs/Conn/system/application/uploads/new/',DIR_WRITE_MODE);
The constant DIR_WRITE_MODE in the config/constants.php
ist default setting (define('DIR_WRITE_MODE', 0777)Wink

But it doesn´t work.....

Can you bring me forward :-)
#4

[eluser]aptereket[/eluser]
Does directory exists?
If windows, read about DIRECTORY_SEPARATOR in php.
If unix, did you changed rights to parent directory for create?




Theme © iAndrew 2016 - Forum software by © MyBB