Jump to content

mkdir path


Recommended Posts

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

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.