File Open and File Write
Hi..
I did this PHP Code:
"The file is being used by another process" and it's not letting me edit the file manually. What I did wrong here? Please suggest. |
Re: File Open and File Write
It is the nature of Windows. Until the other process releases the lock on the file, no other processes can touch it. There is nothing you can do except to have your plugin (and any other plugins reading the file) close and release the handle on the file
|
Re: File Open and File Write
Quote:
PHP Code:
|
Re: File Open and File Write
remove:
PHP Code:
|
Re: File Open and File Write
Quote:
|
Re: File Open and File Write
So then modify this line with the correct options
PHP Code:
|
Re: File Open and File Write
ok. Can you please suggest what changes need to be done? or any link where I can check the options?
|
Re: File Open and File Write
Don't use fopen twice. Simply change "wt" to "at" if that is the mode you require and then delete the second fopen line
|
| All times are GMT -4. The time now is 13:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.