Dear All,
How could I open a file over ftp and read it without locking it to allow other programs from accessing it for reading or writing or even renaming the file,,
Thanks
open a file over ftp without locking it
Moderator: General Moderators
Re: open a file over ftp without locking it
You need to check with whatever operating system you're using. I think you can turn this off in some versions of Linux but I'm not 100% certain.
Either way I wouldn't recommend it. Think about this scenario. Person X is downloading a file and at the same time Person Y changes the file name. Now Person X has a corrupted file because the file they were downloading no longer exists.
Either way I wouldn't recommend it. Think about this scenario. Person X is downloading a file and at the same time Person Y changes the file name. Now Person X has a corrupted file because the file they were downloading no longer exists.
Re: open a file over ftp without locking it
Thanks Jade for your response,
If you don't recommend checking OS, how could I deal with such scenario,, I wanna allow all processes from reading, writing or renaming some file while a php program reading it
If you don't recommend checking OS, how could I deal with such scenario,, I wanna allow all processes from reading, writing or renaming some file while a php program reading it