Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
- New php-forum User
- Posts: 5
- Joined: Mon Apr 30, 2012 5:48 am
how do i copy file which is lock or open by another application?
i tried the copy function but it doesnt work.
- php-forum Fan User
- Posts: 973
- Joined: Mon Oct 01, 2012 12:32 pm
You should be able to fopen() for read only access, then write to new file. at best it gives you a copy of file at the last save.
- php-forum Super User
- Posts: 1805
- Joined: Thu Mar 10, 2011 5:07 pm
Try reading the locked/opened file. If you are not able to read then it means that you do not have enough permission to do that activity. Change the permission using the built-in php function called chmod() and read the file.
Return to “PHP coding => General”
Who is online
Users browsing this forum: No registered users and 7 guests