Which of the following can be used to create a folder if it does not already exist on server through WordPress?
Answer
Correct Answer: function createPath($path) { if (is_dir($path)) return true; $prev_path = substr($path, 0, strrpos($path, -2) + 1 ); $return = createPath($prev_path); return ($return && is_writable($prev_path)) ? mkdir($path) : false; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one