Re: [PHP] file locking question

2004-06-21 Thread Michal Migurski
> I have this script whereby I use the php function file(). > Just a quick question, do I need to implement file locking. If you want to ensure that the file is not changed by other scripts while you're reading from it, yes. Note that this is advisory only - writer scripts will only respect the lo

Re: [PHP] file locking question

2004-06-21 Thread Daniel Clark
If you're just going to read only, no. >>Hi all >> >>I have this script whereby I use the php function file(). >>Just a quick question, do I need to implement file locking. >> >>if so, can I just use something like >> flock( file("/path/file.ext") ); >> >>Kind Regards >>Brent Clark -- PHP G

Re: [PHP] file locking question

2004-06-21 Thread Marek Kilimajer
Brent Clark wrote --- napĂ­sal:: Hi all I have this script whereby I use the php function file(). Just a quick question, do I need to implement file locking. if so, can I just use something like flock( file("/path/file.ext") ); No, you need file locking only for writing. -- PHP General Maili

[PHP] file locking question

2004-06-21 Thread Brent Clark
Hi all I have this script whereby I use the php function file(). Just a quick question, do I need to implement file locking. if so, can I just use something like flock( file("/path/file.ext") ); Kind Regards Brent Clark MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell: +27 82 701 78