Jump to content

Help with mkdir()


dmsweets

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.