Manage Iis log file fom php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi all.

Is it possible to read and write the iis 6
 log file from a php application? Is it possible using COM?

Many thanks.



Re: Manage Iis log file fom php

On 10/10/2010 8:49 PM, Kill Joy wrote:
Quoted text here. Click to load it

Hello KJ,

[You posted 4 times the same message. No need. Be patient: it takes some
time to propagate messages.]

You asked how to manipulate a log file from PHP.
That is absolutely no problem. PHP can open and modify all files on the
computer, assuming of course PHP has the right to do so (filepermissions).

So go ahead and try it.

About COM: Yes, you can use COM, but you don't have to use COM, PHP has
all facilities built in.
Look here:

Unless you have a very good reason to instantiate COM objects, I suggest
that you simply use PHP standard functions.

Two remarks:
1) For futher details about IIS logfiles you better go to a MS newsgroup
(a few dedicated to IIS exist).

2) Beware that you don't try to open a file that is currently written to
by IIS and its accompanying processes.
For details I suggest you ask in an ISS newsgroup.
For questions about PHP file manipulating function, ask here.

Good luck.

Erwin Moller

"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare

Site Timeline