Re: [PHP] $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.
At 04:43 21.03.2003, Philip J. Newman said: [snip] MY ERROR: Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553) [function.mkdir]: Permission denied in /home/crushme/public_html/siteadmin/upload_set_step3.php on line 72 MY PROBLEM: $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made. [snip] The access mode of a directory created by any webserver-run application is dictated by the umask of the webserver process which is usually 022 or 002, giving rw/access only to the owner (the webserver user), or to the owner and owner group. The error you are receiving points to a different situation though - it seems that either the directory where your script wants to create a subdirectory in doesn't grant write permission to the webserver user, or the subdirectory below (...ies/philips) does not (yet) exist. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.
MY ERROR: Warning: mkdir(/home/newmanpj/public_html/galleries/philip/20030320223553) [function.mkdir]: Permission denied in /home/crushme/public_html/siteadmin/upload_set_step3.php on line 72 MY PROBLEM: $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made. SNIP $datestamp = date(YmdHis); $sUser=philip; //Variables for Directories $siteGalleryPath=$sitePath/$siteGalleriesInclude; $siteGalleryUserPath=$siteGalleryPath/$sUser; $destination = $siteGalleryUserPath/$datestamp; $dir_path = /$siteGalleriesInclude/$sUser/$datestamp; //If the Directory for UserName already exists, don't create it.. else create it.. if (file_exists($siteGalleryUserPath)) { echoBDirectory for User, $sUser, Already Exists.../Bbrbr; } else { echoBDirectory for User, $sUser, Doesn't Exist.. Creating../Bbrbr; mkdir($siteGalleryUserPath,0777); } //Code to Add the gallery photoset directory here.. //(add a directory $datestamp under the username dir.. mkdir($destination,0777); // LINE 72 from error above. end snip -- Philip J. Newman. Head Developer [EMAIL PROTECTED]