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 +
> >
>
> 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:> > > >
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
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 +
>
> 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
gton, IN 47404
>
> 812-330-6644 (office)
> 812-219-5708 (mobile)
>
> alice@procurecenters.com(email)
> http://www.procurecenters.com/index.php (web)
>
>
>
>
>
>
> __
> Subjec
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
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
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
No, we tend to bottom-post on this list. It's just how we roll...
Ash
www.ashleysheridan.co.uk
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
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
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
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
>
\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
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 (
16 matches
Mail list logo