Make sure the owner of the server process has delete permissions for the
directory in question.

----- Original Message -----
From: "pong-TC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 11:25 AM
Subject: [PHP] Deleting File


> Hello All
>
> I am trying to build a text file, and delete it by using unlink function,
> but it always refuse to do so because of permission denied.  It gives me
> an error as follows:
>
> Warning: Unlink failed (Permission denied) in
> d:\inetpub\wwwroot\cgi-bin\myfile.php on line 45
>
> Actually, the file was created in the same page by using fopen, and then I
> want to delete when no longer used.  I had tried a delete function, but
> not work.  I am running PHP as a cgi on IIS 5, Win2K.
>
> If anyone can help.
>
> Pong
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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

Reply via email to