#23687 [NEW]: Permission denied error with unlink()
| From: | a dot eibach at gmx dot net | Date: | Sun, 18 May 2003 21:19:57 +0000 |
| Subject: | #23687 [NEW]: Permission denied error with unlink() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39904@lists.php.net to get a copy of this message | ||
From: a dot eibach at gmx dot net
Operating system: Windows 2000
PHP version: 4.3.2RC3
PHP Bug Type: Filesystem function related
Bug description: Permission denied error with unlink()
Hi.
I can see this has been discussed multiple times in this forum: however,
there's no real solution for it, it seems.
First my specs:
- Apache 1.3.27 (<- could that be it?)
- PHP 4.3.2 RC3 (PHP running as a *module* (dll))
- Win2k
I scanned the news groups about this problem, where lots of people claimed
this to work. However, even such a simple script here:
<?php
if (!is_dir("thisisatest"))
{
mkdir ("thisisatest");
}
else echo "Dir creation skipped. Dir already exists.";
echo "Waiting ...";
sleep(3);
echo "done.";
unlink ("thisisatest");
?>
fails on my system with a Permission denied error.
Tips to 'chmod' the current directory are fruitless, because this is
WINDOWS and not UNIX and there are no permissions like this.
I do not intend to use OS-specific stuff like 'del' or 'rm', combined with
the system() command.
I also tested with PHP 4.0.6 and also failed.
Warning: Unlink failed (Permission denied) in
d:\devel\www\apache\apache\htdocs\testme.php on line 14
I'd be happy if you could help me with this and/or fix this problem with
Windows systems.
Some php ML entry told about this being fixed shortly after 4.0.x, but
this might as well have been another issue.
Thanks.
-ae-
--
Edit bug report at http://bugs.php.net/?id=23687&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23687&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23687&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23687&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23687&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23687&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23687&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23687&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23687&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23687&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23687&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23687&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23687&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23687&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23687&r=gnused