Paul,
you have to make sure, that the file you are trying to delete via unlink is
not currently in use by you application:
Example which WILL NOT WORK
$array = File("filename");
Unlink ("filename");
Another one NOT WORKING
$fh = fopen("filename");
$data = fgets($fh);
unlink("filename"");
But this one should work
$fh = fopen("filename");
$data = fgets($fh);
fclose($fh);
unlink("filename");
Regards
Norbert
"Paul Dymecki" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hello,
> I was wondering if anyone knows how to delete a file from the
> filesystem? I've been trying unlink but it doesn't seem to be working as
> expected. Do spaces in the file path have to be compensated for or
> something?
> thx for any help,
> Paul
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php