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. Quote Link to comment 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); ?> Quote Link to comment 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); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.