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
Return to the default flat view Create a new topic Submit Reply
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:
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
[Message index]
 
Read Message
Read Message
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: Wed Nov 27 02:28:52 GMT 2024

Total time taken to generate the page: 0.04327 seconds