Page 1 of 1

User issue

Posted: Thu Nov 11, 2004 6:56 pm
by Shendemiar
If i make directory via php, it's owner is marked as :
drwxrwxrwx 2 httpd customer 4096 Nov 12 02:22 asa

BUT i cannot upload anything to it by php.

Ftp Made directories look like this:
drwxrwxrwx 2 usernamex usernamex 4096 Oct 14 06:17 asetukset

Can i get around this. I really wouldnt want to create >400 folders manually...

Posted: Fri Nov 12, 2004 3:20 am
by phpScott
check to see what the permissions are for the folders

Code: Select all

<?php
mkdir("/path/to/my/dir", 0700);
?>
if find quite often i have to use [php_man]umask[/php_man]() before creating directories to get the permissions right/

Posted: Fri Nov 12, 2004 6:02 am
by Shendemiar
Both have the exact same 0777 permissions, only thign that varies are the tho columns that indicate owner or creator or something like that.

I guess it's because it's shared server where all the php runs with different credentials than if i log in with my shell username/password.