PHP upload file usng mkdir()
Posted: Sat Apr 11, 2009 3:35 pm
Hi,
I am using the wordpress CMS to create a site and am trying to implement an upload form where customers can upload their own image. As part of the code I am using the mkdir() function to create an uploads directory. Like this:
However, I am getting the following error:
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
I am using the wordpress CMS to create a site and am trying to implement an upload form where customers can upload their own image. As part of the code I am using the mkdir() function to create an uploads directory. Like this:
Code: Select all
mkdir($dir_name) or die("Could not create directory " . $dir_name);Code: Select all
Could not create directory http://www.tommy-barker.com/coi/wp-cont ... s/11042009Thanks
-John