Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
how do i copy file which is lock or open by another application?
i tried the copy function but it doesnt work.
- New php-forum User
- Posts: 5
- Joined: Mon Apr 30, 2012 5:48 am
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 Fan User
- Posts: 705
- Joined: Mon Oct 01, 2012 12:32 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.
- php-forum Super User
- Posts: 1804
- Joined: Thu Mar 10, 2011 5:07 pm
Return to PHP coding => General
Who is online
Users browsing this forum: Google [Bot] and 1 guest