SV: [PHP-WIN] unlink problem
| From: | Joakim Ling | Date: | Tue, 08 Mar 2005 15:23:27 +0000 |
| Subject: | SV: [PHP-WIN] unlink problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25727@lists.php.net to get a copy of this message | ||
Ok, but like I said before it's not the permission on the file that's the problem (I
think), it works fine when I'm trying to unlink from a "normal" page that's not
a Dialog.
del.php
<? unlink($_GET['file']); ?>
It seems more like a HTTP deny in PHP or something.
(The file is uploaded in the same dialog)
-----Ursprungligt meddelande-----
Från: Mike [mailto:php@crazyted.com]
Skickat: den 8 mars 2005 15:44
Till: Joakim Ling; php-windows@lists.php.net
Ämne: RE: [PHP-WIN] unlink problem
That bit of code really doesn't help us at all, but my guess is that the
user PHP is running as doesn't have permissions to delete from the D:\
drive.
To work around it give that user permissions to delete from that location.
It might also be helpful to give us the contents of del.php.
-M
> -----Original Message-----
> From: Joakim Ling [mailto:jl@webbhuset.se]
> Sent: Tuesday, March 08, 2005 9:40 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] unlink problem
>
> Hi
>
>
>
> When I'm trying to delete a file in a Dialog I receive this
> strange error "HTTP does not allow unlinking in "d:\del.php
> on line 20". Can I work around this?
>
>
>
> <script>showModalDialog('del.php?file=foo.txt',null,'dialogHei
> ght:250px;
> dialogWidth:366px; resizable:no; status:no');</script>
>
>
>
> thanks
>
>