Web Programming

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

PHP Creating a folder  Viewed 56251 time(s), 2 post(s)., 1/10/2014 2:59:16 AM - by Khalid

Khalid 1/10/2014 2:59:16 AM

I am working on php code to create a folder if it does not exist

This content has not been rated yet. 
113 Reputation 7 Total posts
Raji 1/10/2014 8:51:14 PM

Try this one

if (!file_exists('path_directory')) {
    mkdir('path_directory', 0777, true);

This content has not been rated yet. 
61 Reputation 12 Total posts