Re: mkdir after mkdir

From: Date: Sun, 06 Jun 2004 17:29:09 +0000
Subject: Re: mkdir after mkdir
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187740@lists.php.net to get a copy of this message
I think PHP and mkdir() is using the web servers rights. So the web server would need rights to create directories. >>Hello, >> >>I have a problem with the mkdir function. >>I'm trying to make a seperate folder every photoalbum. inside I want to >>create another folder ('.../thumbnails/') for, you can guess, the >>thumbnails. >> >>At first it didn't work at all: >> >>>Warning: mkdir() failed (Permission denied) in >>/home/virtual/site43/fst/var/www/html/beheer/albums/index.php on line 42 >> >>When I changed the rights of the folder I wanted to create the new folder in >>to chmod 0777, the first MKDIR did work, but the second did not. >> >>>SAFE MODE Restriction in effect. The script whose uid is 1042 is not >>allowed to access >>/home/virtual/site43/fst/var/www/html/uploaded/images/albums/album_0 owned >>by uid 48 in /home/virtual/site43/fst/var/www/html/beheer/albums/index.php >>on line 43 >> >>this is very strange because the folders are both made in the same script. >>Another strange thing is that I user mkdir($dir, 0777), but when I look at >>the created folder it is 0755 and I can not change it. >> >>That's pritty much my problem. Your help would be very much appreciated.

« previous php.general (#187740) next »