NYCPHP Meetup

NYPHP.org

[nycphp-talk] can PHP and Perl share a common log file?

David Mintz dmintz at davidmintz.org
Mon Dec 5 13:27:33 EST 2005


Thought experiment: you are using a Perl module called Log::Trivial
(http://search.cpan.org/~atrickett/Log-Trivial-0.03/lib/Log/Trivial.pm) to
log to a file. It uses flock() internally. You are also using php's native
error_log() to write to the same log file. Is this asking for trouble?
Does log_error() flock() internally, and will it honor a Perl flock()? I
am guessing both flock implementations wrap the same underlying C stuff,
about which I know little, hence the question.

Thanks.

---
David Mintz
http://davidmintz.org/



More information about the talk mailing list