mkdir function not working
-
This works fine when testing it on a page with a custom template:
add_action (‘folder’, function(){
$tempDir = realpath(‘wp-content/themes’);
$tempDir = $tempDir.”\used-car-lot-theme”;
mkdir($tempDir,0700);}but when I move it to the register_activation_hook function in my plugin it pukes with this error:
Warning: mkdir() [function.mkdir]: File exists
and the folder is not created. (and no, the file does not exist).Help please 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘mkdir function not working’ is closed to new replies.