RE: [PHP] PHP unlink Permission Error

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 07:48 -0500, Alice Wei wrote: > > > Subject: RE: [PHP] PHP unlink Permission Error > > From: a...@ashleysheridan.co.uk > > To: aj...@alumni.iu.edu > > CC: php-general@lists.php.net > > Date: Tue, 13 Jan 2009 17:07:34 + > > >

RE: [PHP] PHP unlink Permission Error

2009-01-14 Thread Alice Wei
> Subject: RE: [PHP] PHP unlink Permission Error> From: > a...@ashleysheridan.co.uk> To: aj...@alumni.iu.edu> CC: > php-general@lists.php.net> Date: Tue, 13 Jan 2009 17:07:34 +> > On Tue, > 2009-01-13 at 11:49 -0500, Alice Wei wrote:> > > >

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread VamVan
Alice, I see that you are using windows. For windows only the write permission for the folder and file isn't enough. You need to change the owner ship of the file as well so that u have privilege to delete. Do this , this might work: //Change the owner ship of the file to a non existent user in t

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
On Tue, 2009-01-13 at 11:49 -0500, Alice Wei wrote: > > > > > Subject: RE: [PHP] PHP unlink Permission Error > > From: a...@ashleysheridan.co.uk > > To: aj...@alumni.iu.edu > > CC: php-general@lists.php.net > > Date: Tue, 13 Jan 2009 16:50:31 + >

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
> Subject: RE: [PHP] PHP unlink Permission Error> From: > a...@ashleysheridan.co.uk> To: aj...@alumni.iu.edu> CC: > php-general@lists.php.net> Date: Tue, 13 Jan 2009 16:50:31 +> > On Tue, > 2009-01-13 at 11:33 -0500, Alice Wei wrote:> > Hi, As

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
gton, IN 47404 > > 812-330-6644 (office) > 812-219-5708 (mobile) > > alice@procurecenters.com(email) > http://www.procurecenters.com/index.php (web) > > > > > > > __ > Subjec

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread ceo
touch foo.txt chmod 000 foo.txt rm foo.txt rm: remove write-protected regular empty file `foo.txt'? So the behaviour is at least partially shell/profile dependent... I have no idea how this would affect PHP unlink, if at all. ymmv naiaa ianasg [*] [*] sg: shell guru -- PHP Ge

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Hi, Ashley: Sorry. To answer the question from your previous entry, it looks like that my permission could be set and changed for the folder, but when I do it on the "file", I only get 0666. I have the latest code on another entry. Thanks a lot for your help. Alice Alice Wei Indian

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
On Tue, 2009-01-13 at 15:46 +, c...@l-i-e.com wrote: > Not only do you need to check the return value of chmod to see if it worked, > but also, I *think*: > > > > The file withing the directory can have entirely different permissions, and > making the directory world writable won't help th

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
No, we tend to bottom-post on this list. It's just how we roll... Ash www.ashleysheridan.co.uk

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread Shawn McKenzie
se, how > come I don't have the permissions to delete the file? > Thanks again. > > Alice> Subject: Re: [PHP] PHP unlink Permission Error> From: > a...@ashleysheridan.co.uk> To: aj...@alumni.iu.edu> CC: > php-general@lists.php.net> Date: Tue, 13 Jan

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread ceo
Not only do you need to check the return value of chmod to see if it worked, but also, I *think*: The file withing the directory can have entirely different permissions, and making the directory world writable won't help that, I don't think... I could be wrong, and a 000 file in a 777 dir

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Hi, Ashley: I tried to find your corrected errors, but I cannot seem to find it. Have you sent me an empty reply message by mistake? Alice> Subject: RE: [PHP] PHP unlink Permission Error> From: a...@ashleysheridan.co.uk> To: aj...@alumni.iu.edu> CC: php-general@lists.php.ne

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
ub\wwwroot\project\file_write.php n line 11 > > If this is the case, how come I don't have the permissions to delete > the file? > Thanks again. > > Alice > > > > Subject: Re: [PHP] PHP unlink Permission Error > > From: a...@ashleysheridan.co.uk >

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
\wwwroot\project\file_write.php on line 10Warning: unlink(testFile.txt) [function.unlink]: Permission denied in C:\Inetpub\wwwroot\project\file_write.php n line 11If this is the case, how come I don't have the permissions to delete the file? Thanks again. Alice> Subject: Re: [PHP] PH

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread Ashley Sheridan
On Tue, 2009-01-13 at 09:42 -0500, Alice Wei wrote: > Hi, > >I have a snippet of code as follows: > > > ini_set('display_errors', 1); error_reporting(E_ALL); > $curDir = getcwd(); > echo $curDir; > chmod($curDir,0777); > unlink("testFile.txt"); > echo unlink("testFile.txt"); > chmod (