programming.name Posted June 7, 2010 Share Posted June 7, 2010 Hi, is there any way to create a folder other than in the current folder? For example, if there are two folders being c:\a and c:\b and each folder will do the follwing: c:\a The php code that contains mkdir(getcwd() ."../b/photo1" , 0777) is run in this folder. c:\b In this folder the photo1 will be created. I tried to create the folder 'photo1' in c:\b which will fail. Unlike include('../../../photos.php');, the string part "../b/photo1" reads as it is. is there any way to achieve this please ? thanks Link to comment https://forums.phpfreaks.com/topic/204107-mkdir-path/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.