Jump to content

Archived

This topic is now archived and is closed to further replies.

smartguyin

How to create folder using php

Recommended Posts

I have tried mkdir() but when it gives me error "Warning: mkdir(www): Permission denied in "

I have set my public_html folder to chmod 777 still then this error occurs.....

How can i create folder without any errors

Please Reply !

Share this post


Link to post
Share on other sites
mkdir() does this.  Make sure the owner of the file (i.e. smartguy) isn't trying to create a folder in a directory owned by say, root.

Share this post


Link to post
Share on other sites
I am using this code to create folder

mkdir ($key, 777);

In this variable $key is coming from the submit form and then using the info from variable $key create the folder by that name.

Am i worng in this.........  tell me

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.