pro Posted January 5, 2007 Share Posted January 5, 2007 Hi everybody i have a question on creating a folder in php do i have to use mkdir() function? if yes, how i use it? because it does't work with me plz help me thanx Quote Link to comment https://forums.phpfreaks.com/topic/33026-how-to-create-a-folder/ Share on other sites More sharing options...
ToonMariner Posted January 5, 2007 Share Posted January 5, 2007 [url=http://uk.php.net/manual/en/function.mkdir.php]http://uk.php.net/manual/en/function.mkdir.php[/url]if you are having trouble make sure that open_basedir is not set in your php.ini file and maybe safe_mode too (can't remeber what that does but I do remember it can be significant).other wise post the errors from teh script. Quote Link to comment https://forums.phpfreaks.com/topic/33026-how-to-create-a-folder/#findComment-153835 Share on other sites More sharing options...
Daniel0 Posted January 5, 2007 Share Posted January 5, 2007 You need to make sure you have write permissions in the folder you are creating the new folder in using mkdir(). Quote Link to comment https://forums.phpfreaks.com/topic/33026-how-to-create-a-folder/#findComment-153860 Share on other sites More sharing options...
weknowtheworld Posted January 6, 2007 Share Posted January 6, 2007 By default, the mode is 0777 (widest possible access).The mode parameter consists of four numbers: * The first number is always zero * The second number specifies permissions for the owner * The third number specifies permissions for the owner's user group * The fourth number specifies permissions for everybody elsePossible values (to set multiple permissions, add up the following numbers): * 1 = execute permissions * 2 = write permissions * 4 = read permissions Quote Link to comment https://forums.phpfreaks.com/topic/33026-how-to-create-a-folder/#findComment-154053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.