[eluser]John_Betong[/eluser]
Hi latuss,
I think the problem is that unlink(...) does not like directories/paths.
I have vague memories of the same problem and my 'Kludge' was to:
1. save the directory where you are - getcwd()
2. change to the directory where the file exists - chdir()
3. unlink('the_file')
4. change back to the original directory.
Cheers,
John_Betong