problem creating directory in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jimthunderbird
Forum Contributor
Posts: 147
Joined: Tue Jul 04, 2006 3:59 am
Location: San Francisco, CA

problem creating directory in php

Post by jimthunderbird »

Hi All,
Recently I'm writing some php code to create directories in the server but I keep getting error message when using the mkdir function. Anyone knows how to solve it and any workarounds?
Thanks for your help.

With my best,
Jim
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's probably permissions issues. You may find it better to use the FTP facilities of PHP.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Check phpinfo() to be sure mkdir() is not banned by your service provider.... On a shared host you just never know....
Post Reply