Jump to content

mkdir help.


takn25

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.