Re: every file should have the right to be where it wants to be

From: Date: Fri, 23 May 2003 12:13:36 +0000
Subject: Re: every file should have the right to be where it wants to be
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-20061@lists.php.net to get a copy of this message
Hi Malte, if your destination dir is outside the document root, you probably will have to set the permissions manually by logging into W2K as administrator. BTW, cute name yours. Are you a he or a she? Do you go by that name with your esteemed customers? Ignatius ____________________________________________ ----- Original Message ----- From: "malte 'the bitch' fucks" <der_diggen@gmx.net> To: <php-windows@lists.php.net> Sent: Friday, May 23, 2003 2:02 PM Subject: [PHP-WIN] every file should have the right to be where it wants to be > Hi, > i'm writing a little File Managment Script. I've done all the file, dir > listings and you even can rename and delete files. > Now i want to implement a function which allows users to move files around. > Every user has a dir named after his id and infinite Subdirs under that. > > PHP gives me this: > Warning: copy(filebase/1/images/test) [function.copy]: failed to create > stream: Permission denied in c:\htdocs\schedule\fileops.php on line 126 > > with this code > > if($pfad) > { > if(@copy($afile, $pfad)) // afile = > 'filebase/1/images/test/test22/verlauf3.jpg' & $pfad = > 'filebase/1/images' > { > unlink($afile); > ?> > <script language="javascript"> > this.close(); > </script> > <? > } > else > { > ?> > <table cellspacing="3" cellpadding="3" > width="100%" border="1" > style="border-style: double; border-width: 4px;" bordercolor="<? echo > $color[0]; ?>" height="100%"> > <tr> > <td align="center" >Datei '<? echo $afile; ?>' > konnte nicht > nach '<? echo $pfad; ?>' verschoben werden!</td> > </tr> > <? > } > } > > i even tried to chmod every file while listing with 777 > > chmod($dir."/".$filename, "0777"); > > but the rights PHP shows me are 100666 > thx for your time > diggn / malte / whatever > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#20061) next »