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:[EMAIL PROTECTED] 
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:[EMAIL PROTECTED] 
> 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
> 
> 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to