feri_soft Posted April 29, 2006 Share Posted April 29, 2006 Can you give me a script which is doing that:Checks if the directory exists and if exist i will put the code to applyif it isn't exist the script will create the category itself.The category will be a variable containing the user name from a query ;) Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 29, 2006 Share Posted April 29, 2006 I can't give you a script, but I can point you to the user notes in the manual for the [a href=\"http://ca.php.net/manual/en/function.mkdir.php\" target=\"_blank\"]mkdir function[/a].If you're going to allow users to create directories you need to be VERY VERY careful about it!! Quote Link to comment Share on other sites More sharing options...
feri_soft Posted April 29, 2006 Author Share Posted April 29, 2006 I've seen the manual but i didn't gound any useful think at all.And about the use i want to create a script which uploads files to a certain directory.And the directory have for name the username of a user.The script must check if there is already a category with the name of the uploader and if there isnt it must create one and continue uploading ;)the other possibility that i have is to create some directories 5-6 but they will have about 200-300 files each and i don't know will that is going to slow down the server much.If you think that it won't i can proceed with the 2-nd method ;) Quote Link to comment 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.