View Single Post
07-17-2010, 06:55 AM
#1
geforce is offline geforce
Status: Member
Join date: Jul 2006
Location: UK
Expertise: Programming - PHP & MySQL
Software: Photoshop and Notepad++
 
Posts: 216
iTrader: 2 / 100%
 

geforce is on a distinguished road

Send a message via AIM to geforce

  Old  PHP - Reading a file but not locking it

Hi,

Im hoping someone can help me with a small problem im having.

I have a program which is logging actions from a windows application. This application puts actions into a text file which im reading and formatting to put into a database. All that is working fine.

But! When reading the log file with PHP if the program wants to add an action to that log file it says it cant create the log file, obviously because im reading it with php at that time.

Is there anyway I can read it but also allow the application to write to it no matter what. I can open the log file in notepad and the application will strill write to it.

Thanks for any help.
Martin

Reply With Quote