phpretard Posted May 13, 2008 Share Posted May 13, 2008 I am trying to add a folder named "TEST" to a folder in my site located here: www.website.com/pages/secure/proofs Where in this line of code does TEST go? <? mkdir("/pages/secure/proofs/" , 0700); ?> I keep getting errors no matter where i put TEST. Link to comment https://forums.phpfreaks.com/topic/105450-make-directory/ Share on other sites More sharing options...
trq Posted May 13, 2008 Share Posted May 13, 2008 I doubt the pages directory is within your filesystems root. Try... <?php mkdir("pages/secure/proofs/TEST" , 0700); ?> Link to comment https://forums.phpfreaks.com/topic/105450-make-directory/#findComment-540074 Share on other sites More sharing options...
BlueSkyIS Posted May 13, 2008 Share Posted May 13, 2008 or potentially <?php mkdir($_SERVER['DOCUMENT_ROOT']."/pages/secure/proofs/TEST" , 0700); ?> Link to comment https://forums.phpfreaks.com/topic/105450-make-directory/#findComment-540088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.