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

From: Date: Fri, 23 May 2003 18:00:14 +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-20073@lists.php.net to get a copy of this message
my my some guts this dude got ..... :S bout his "cute" name ofcourse :) toby --- malte <der_diggen@gmx.net> wrote: > no the destination directory never is outside my doc root... > but why doesn't chmod work? the upload works perfectly for the same > directories > and its the same command (copy()), so why can't i copy files > already on the > server around? > > p.s.: I'm a he and if i had any esteemed customers, they would be > esteemed > cause they don't care what > some guy happens to call himself :) > > > ----- Original Message ----- > From: "Ignatius Reilly" <ignatius.reilly@free.fr> > To: "malte 'the bitch' fucks" <der_diggen@gmx.net>; > <php-windows@lists.php.net> > Sent: Friday, May 23, 2003 2:13 PM > Subject: Re: [PHP-WIN] every file should have the right to be where > it wants > to be > > > > 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 > > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ It's Samaritans' Week. Help Samaritans help others. Call 08709 000032 to give or donate online now at http://www.samaritans.org/support/donations.shtm

« previous php.windows (#20073) next »