troubleshooting Question

PHP: mkdir subfolder

Avatar of detox1978
detox1978Flag for United Kingdom of Great Britain and Northern Ireland asked on
PHPApache Web ServerAJAX
5 Comments3 Solutions657 ViewsLast Modified:
Hi All,

Ok, pretty sure this is straight forward, but i can't work it out.

Within myscript.php how do i create a folder in /admin/images


I thought it would be this;

mkdir("/admin/images/".$user_id, 0777);
chmod("/admin/images/", 0777);

...but it returned;

Warning: mkdir() [function.mkdir]: No such file or directory
Phil Phillips
Lead Platform Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros