Manage Iis log file fom php [message #170108] |
Sun, 10 October 2010 18:49 |
Kill Joy
Messages: 4 Registered: October 2010
Karma: 0
|
Junior Member |
|
|
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.
Regards.
KJ.
|
|
|
Re: Manage Iis log file fom php [message #170115 is a reply to message #170108] |
Mon, 11 October 2010 07:49 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 10/10/2010 8:49 PM, Kill Joy wrote:
>
> 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.
>
> Regards.
>
> KJ.
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:
http://nl.php.net/manual/en/ref.filesystem.php
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
|
|
|