Hello,
unfortunatelly my app must work on windows & linux os. So I must code my app with functions which are available for this systems. Currently I have huge problem with unlink -> I have used it many times before, and I didn't have any problems till now... Maybe you have some experiences with this:
I call function:
$dir = "".$GLOBALS['dir_name']."/$file_name";
unlink($dir);
the file isn't deleted -> it is still there but I can't read this file, and after few seconds it disappear....
Maybe problem wouldn't be so huge if one thing: after deleting file I want to create NEW one, with the same name... and I can't becouse the file already exist and I can't read/write/delete that file in next few seconds...
I also have the same problem when I use move_uploaded_file -> it shoud overwrite old file and create new... but it's not working.
Any suggestions ? I use PHP 4.3.0, Apache 2.0.43, WinXP