unlink() works fine apart from when trying to delete read-only files. 
Thanks for the suggestion anyway.

Neil

Lowell Allen wrote:
> **************************************************************************
> This Message Was Virus Checked With : SAVI 3.58 May 2002 
> Last Updated 14th June 2002
> **************************************************************************
> 
> 
>>From: Neil Freeman <[EMAIL PROTECTED]>
>>
>>I'm trying to delete a file using PHP's unlink() function (on Windows).
>>This works fine on writable files but fails when trying to delete
>>read-only files. How can I delete read-only files? Is there a function
>>available to change the permissions?
>>
> 
> I thought unlink() did not work on Windows. Notes in the manual suggest this
> for Windows:
> 
> system("del name.ext");
> 
> --
> Lowell Allen
> 
> 


-- 
----------------------------
Work: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED]

Web:  www.curvedvision.com
----------------------------


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

Reply via email to