Posted by katman on 02/17/07 04:00
On 2007-02-15 10:56:48 -0600, "sergio-p" <sergioafp@gmail.com> said:
> I had no luck in my google search for this answer.
> Does anyone know if it's possible to read the entries in the Windows
> Event Log of the server running my PHP page? I'm trying to create an
> itranet page that lists errors from the server event log.... I'd
> prefer a pure PHP solution, but I'd be happy to try other alternatives
> that involve call outs to non-PHP code.
>
> Thanks in advance.
> - Sergio
Well if you can find an ms dos command that will export the log into a
..txt or .csv you can do it in PHP. `` quotes are meant for shell
commands or you can also use exec() function for that. All you got to
do in php is parse the file.
Maybe there are 3rd party apps that can export the windows log into an
xml file, than you don't need php at all. Whole bunch of xsl sheets and
you got your rss feed done.
Navigation:
[Reply to this message]
|