takn25 Posted February 19, 2011 Share Posted February 19, 2011 Hi, I want to create a directory named according to the users ID which is auto incrementing. I want to a create the directory only if they have successfully registered. In more clear words the directory should be as 1 2 3 onwards. A bit of guidance would be appreciated with the mkdir function and how can i get the user ID exactly after they have registered before they sign in is this possible? Link to comment https://forums.phpfreaks.com/topic/228166-mkdir-help/ Share on other sites More sharing options...
gizmola Posted February 19, 2011 Share Posted February 19, 2011 You are in control of the user registration process, so I don't see any issue there. If you're using mysql, then you can use mysql_insert_id() to get the id of a new row you just inserted. The php http://us3.php.net/manual/en/function.mkdir.php is about as simple a routine as they come. Link to comment https://forums.phpfreaks.com/topic/228166-mkdir-help/#findComment-1176621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.