Svenska (Sverige)English (United Kingdom)
Start Webb PHP Why can i not use mkdir() to create folders from PHP?

Why can i not use mkdir() to create folders from PHP?

For you to be able to create folders with mkdir() in PHP, the folder in which the subfolder is created must have permissions 777 so the webserver owner which php is run as will have permissions to create the folder.

Example: If you want to create \'test1/test2\', the test1 folder needs to exist and have permissions 777 before mkdir() can be used to create test2 under this