FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Manage Iis log file fom php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Manage Iis log file fom php [message #170108] Sun, 10 October 2010 18:49 Go to next message
Kill Joy is currently offline  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 Go to previous message
Erwin Moller is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: File read-in issue
Next Topic: Free PHP Code for you on PHPKode.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 21:52:03 GMT 2024

Total time taken to generate the page: 0.02346 seconds