brianlange Posted May 12, 2010 Share Posted May 12, 2010 How would I go about creating a directory on a remote server? I have a secure ftp account on the server and I am using this to transfer files. I need to check if the directory on the server exists and if not create it before moving the files. Thanks in advance. -Brian Link to comment https://forums.phpfreaks.com/topic/201546-create-a-directory-on-a-remote-server/ Share on other sites More sharing options...
andrewgauger Posted May 13, 2010 Share Posted May 13, 2010 If this is indeed a php question: mkdir("/path", 0700); Should work, and it won't "over write" an existing directory. Link to comment https://forums.phpfreaks.com/topic/201546-create-a-directory-on-a-remote-server/#findComment-1057572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.