PHP upload file usng mkdir()
-
Hi,
I am using wordpress to create a site and am trying to implement an upload form where customers can upload their own image to our database. As part of the code I am using the mkdir() function to create an uploads directory. Like this:
mkdir($dir_name) or die("Could not create directory " . $dir_name);
However, I am getting the following error:
Could not create directory https://www.tommy-barker.com/coi/wp-content/themes/change/upload/11042009
Does anybody have any idea what the problem is? I thought maybe it was something to do with wordpress but I have tried it outside of wordpress and get the same error.
Thanks
-John
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP upload file usng mkdir()’ is closed to new replies.