Hey guys. I am trying to automaticaly create directories from a webpage on my server and set the permissions.
I have tried the obvious mkdir($path) and I have tried the not so obvious exec("mkdir -m 0777 $path").
The latter used to work on another server, but no longer does now. The former creates the directory but it is owned by Apache and the permissions are set to 0 so i cannot even open thru my ftp program or add files to it.
In the php.ini I have
safe_mode=off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
;open_basedir =
the open base dir is commented out as you can see and include and exec have no values, as you can see.
So is there something I need to change in the ini file?
Thanks.
BTW, the PHP version is 5+