1

mkdir("/people/jason", 0700, TRUE);

TRUE = Recursive in PHP 5 and the server is running 5.2.5 but I get:

Warning: mkdir() expects at most 2 parameters, 3 given in 
/home/net1003/public_html/admin/_createPage.inc on line 5
1
  • Can you show any of the rest of your code? Commented Oct 20, 2008 at 3:23

2 Answers 2

2

are you running this particular script through the command line interface instead? it's possible that version of PHP 4, whereas the mod_php version is 5.

Sign up to request clarification or add additional context in comments.

Comments

0

That is all of my code.

I want to create a directory on the web server after a user is added to the MySQL database. Each user gets their own directory with a default index.php page and I am trying to do this programatically rather than manually.

1 Comment

can you post the relevant portions of _createPage.inc, also, please post the output of phpversion();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.