Welcome Guest, Not a member yet? Register   Sign In
how to make new folder ?
#1

[eluser]Mario "St.Peter" Valentino[/eluser]
hi i tried to make folder in CI. I always fail. I dont know why ?

this is the example code

$name = underscore($this->input->post("name",true).'/general/';
mkdir(base_url().$name);


the code above never work.
note : i'm running on windows xp, xampp


Please help me and give me tutorial.



Thanks


Mario
#2

[eluser]Reneesh T K[/eluser]
may be try to use the base path (BASEPATH)
#3

[eluser]Mario "St.Peter" Valentino[/eluser]
it works but the folder created on system folder, i want the folder i create locate on the same folder with application,system
#4

[eluser]InsiteFX[/eluser]
Code:
mkdir(FCPATH.$name);
#5

[eluser]Mauricio de Abreu Antunes[/eluser]
^

Indeed, FCPATH is that you are looking for.
#6

[eluser]CroNiX[/eluser]
All of the CI paths are defined at the bottom of index.php, if you want to see all that are available.




Theme © iAndrew 2016 - Forum software by © MyBB