jronyagz Posted November 13, 2006 Share Posted November 13, 2006 hello all! i am writing a simple registration in php. this registration has a image upload on the form,here is the problem i whant the image to be save on a folder,but! this folder will be only generated every time a new registration is created..with a folder name of the users id and all the image that the user uploaded will be save on that folder..could somebody give me a good link or tutorial or idea how to make this...im new in php i hove you could help me!tnx Link to comment https://forums.phpfreaks.com/topic/27142-need-help-in-creating-a-foldernewbie/ Share on other sites More sharing options...
blear Posted November 13, 2006 Share Posted November 13, 2006 The command[code] system('mkdir '. $dirName);[/code]for windows, or for linux[code] system('md ' . $dirName);[/code]Will create the directory as a subdirectory of the current working directory. $dirName is whatever you want the directory to be called. Link to comment https://forums.phpfreaks.com/topic/27142-need-help-in-creating-a-foldernewbie/#findComment-124065 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.