php folder create

4 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

php folder create
Dummy1912
Hello,

Seems it don't work
even nomesoft did help me but seems not working :( even as it should be.

anyone know why it not working?

100cc for the one the solution works :)
Code: Select all
$dirname = $sql; --->just a folder from settings call files
           $filename = "addinhere/$dirname/";
           if  (file_exists($filename))
           {
           echo 'The directory ' .$dirname. ' exists';
           }
           else
           {
           mkdir("addinhere/$dirname", 0777);
         
          echo 'The directory ' .$dirname. ' was successfully created.';
           }
i get only a The directory has successfully created but its not cryer;
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: php folder create
comathi
Here you go:
Code: Select all
$dirname = $sql; //just a folder from settings call files
           $filename = "addinhere/" . $dirname ."/";
           if  (file_exists($filename))
           {
           echo 'The directory ' .$dirname. ' exists';
           }
           else
           {
           mkdir("addinhere/" . $dirname, 0777);
         
          echo 'The directory ' .$dirname. ' was successfully created.';
           }
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: php folder create
Dummy1912
hey,

sorry but still no folder :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: php folder create
Dummy1912
found the little bug,

sorry guys
but seems a problem with my sub folders :)
thanks anyway.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
4 posts Page 1 of 1
Return to “Help & Support”