Jason
Jason

Reputation:

PHP mkdir issue

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

Upvotes: 1

Views: 721

Answers (2)

Jason
Jason

Reputation:

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.

Upvotes: 0

Owen
Owen

Reputation: 84513

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.

Upvotes: 2

Related Questions