Page 1 of 1
Creating directories on a server with PHP
Posted: Mon Jun 10, 2002 6:36 pm
by Jim
Is it possible to create a script which would allow someone to create a directory on a server without actually having to FTP in?
If there is, how can it be done?
Thanks

Posted: Mon Jun 10, 2002 6:45 pm
by chris12295
to make a directory just do the following:
this will make a directory and set the privleges.
mkdir('path', 0777);
might need to add umask.
Posted: Tue Jun 11, 2002 12:59 am
by volka
only notes:
0777 grants read/write/execute to everyone
first check that the path is in 'your space' on the server.
It's not nice (and also a failure of the provider, of course) if someone creates '/tmp2' or similar
Posted: Tue Jun 11, 2002 5:40 am
by Jim
Maybe I should have posted this here. Nonetheless:
Umask Problems (Post)
Thanks
