dmsweets Posted May 22, 2008 Share Posted May 22, 2008 Hi, I'm having problems implementing a simple upload script which creates a directory and uploads images to that folder. mkdir() works but the uid and gid are owned by apache. As a result the newly created folder cannot be accessed. I have scowered the internet for documentation on this subject but to no avail. My code is more complicated but for the purpose of testing I have created a very simple page with code as follows: <?php mkdir("/var/www/vhosts/mirandamoser.com/httpdocs/author/test", 0777); ?> Has anyone else encountered this problem and if so is there a solution? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/106707-help-with-mkdir/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.