Re: [PHP] UTC on php log bug

2012-08-26 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 8:48 PM, Martín Marqués wrote: > Whats up with this bug?: https://bugs.php.net/bug.php?id=60723 perhaps direct the query (such as it is) to php-development -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] UTC on php log bug

2012-08-24 Thread Martín Marqués
Whats up with this bug?: https://bugs.php.net/bug.php?id=60723 -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] log tailing

2012-07-02 Thread Matijn Woudt
On Mon, Jul 2, 2012 at 3:23 PM, Mihamina Rakotomandimby wrote: > On 06/30/2012 09:32 PM, Daniel Brown wrote: >>> >>> >> $ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk >>> {'print $1,$2,$3 "|" $5 "|" $11'}`)); > > > This will tail a default number of lines. > > I'm looking for a wa

Re: [PHP] log tailing

2012-07-02 Thread Mihamina Rakotomandimby
On 06/30/2012 09:32 PM, Daniel Brown wrote: This will tail a default number of lines. I'm looking for a way to identify the last line, and when launching the PHP script I get the added line between now and that last one. There is a "logtail" utility in the "logtool" package, but I want a fu

Fwd: Re: [PHP] log tailing

2012-06-30 Thread tamouse mailing lists
-- Forwarded message -- From: "tamouse mailing lists" Date: Jun 30, 2012 4:35 PM Subject: Re: [PHP] log tailing To: "Daniel Brown" On Jun 30, 2012 1:34 PM, "Daniel Brown" wrote: > > On Sat, Jun 30, 2012 at 2:30 PM, Daniel Brown wrote: &

Re: [PHP] log tailing

2012-06-30 Thread Daniel Brown
On Sat, Jun 30, 2012 at 2:30 PM, Daniel Brown wrote: > > > $ssh_entries = explode(PHP_EOL,trim(`tail /var/log/syslog | awk > {'print $1,$2,$3 "|" $5 "|" $11'}`)); Actually, the above was intended to grab just sshd entries, so instead of 'tail' you should use 'grep sshd' in the line above.

Re: [PHP] log tailing

2012-06-30 Thread Daniel Brown
On Fri, Jun 29, 2012 at 4:49 AM, Mihamina Rakotomandimby wrote: [snip!] > > Typically, a log line like: > Jun 29 11:24:10 dev5 sshd[12775]: Accepted password \ >            for dev5 from 192.168.0.12 port 50544 ssh2 > [snip!] > So that I can: > > INSERT INTO ssh_activity \ >   VALUES ('2012-06-29

Re: [PHP] log tailing

2012-06-29 Thread tamouse mailing lists
On Fri, Jun 29, 2012 at 3:49 AM, Mihamina Rakotomandimby wrote: > I have a /var/log/messages and /var/log/syslog file to parse to extract > information from. > > I have the to extract the date, and some information in the line. [snip] > I just need help on the right regexp function to use. > Would

[PHP] log tailing

2012-06-29 Thread Mihamina Rakotomandimby
Hi all, I have a /var/log/messages and /var/log/syslog file to parse to extract information from. It's mainly to insert the data to several SQL tables. I have the to extract the date, and some information in the line. Doing it with preg_match() and extracting the data is the first solution

Re: [PHP] Log Rotation, leave it to OS or do it in PHP code?

2011-02-26 Thread Ashley Sheridan
On Sat, 2011-02-26 at 16:37 +0330, AmirBehzad Eslami wrote: > Dear list, > > It seems that Python has already a Log Rotation mechanism, > which solves the problem of log file growth. > > I'm wondering whether there is any PHP-based solution around? > Now let me ask from a different view: > > Is

[PHP] Log Rotation, leave it to OS or do it in PHP code?

2011-02-26 Thread AmirBehzad Eslami
Dear list, It seems that Python has already a Log Rotation mechanism, which solves the problem of log file growth. I'm wondering whether there is any PHP-based solution around? Now let me ask from a different view: Is it a good approach to implement the Rotation mechanism to PHP? (Code Level) Or

[PHP] Re: How to stop E_DEPRECATED messages in the PHP log?

2009-07-08 Thread Andre Hübner
Hello, Try error_reporting(E_ALL ^ E_DEPRECATED); Thanks for your suggestion - it would work nicely, except that that is a runtime function that is called within a script. but if it works within script you could do it by auto_prepend_file to stop flooding the log until solution is found..

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 17:46, Jeff Weinberger wrote: > > One question - that I for some reason have not found - is there a list of > the numerical values of the E_* constants somewhere? You bet: http://php.net/manual/en/errorfunc.constants.php -- daniel.br...@parasane.net || danbr...@php.ne

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 12:30 PM, Tom Worster wrote: On 7/7/09 12:17 PM, "Jeff Weinberger" wrote: On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 12:17 PM, "Jeff Weinberger" wrote: > On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: > >> On Tue, Jul 7, 2009 at 11:03, Jeff >> Weinberger wrote: >>> >>> This seemed like it would be the perfect solution...but alas it did >>> not >>> work. 22527 seems right, but after changing php.ini

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 11:38 AM, "Daniel Brown" wrote: > On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: >> >> This seemed like it would be the perfect solution...but alas it did not >> work. 22527 seems right, but after changing php.ini to that and restarting >> php and apache, I am still getting "Depr

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right, but after changing php.ini to that and restarting php and apache, I am still getting "Depr

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: > > This seemed like it would be the perfect solution...but alas it did not > work. 22527 seems right, but after changing php.ini to that and restarting > php and apache, I am still getting "Deprecated..." messages. Dumb question, Jeff: are

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 5:50 AM, Richard Quadling wrote: 2009/7/6 Jeff Weinberger : Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form "PHP Deprecated: ...". I know I have a number of sc

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Richard Quadling
2009/7/6 Jeff Weinberger : > Hi: > > I am hoping someone can help me figure this out > > I've just upgraded my PHP installation to 5.3.0. Now I am receiving > thousands of log messages of the form "PHP Deprecated: ...". > > I know I have a number of scripts that use now-deprecated functions, et

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 1:23 AM, "Jeff Weinberger" wrote: > On Jul 6, 2009, at 7:47 PM, Paul M Foster wrote: > >> On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: >> >>> Hi: >>> >>> I am hoping someone can help me figure this out >>> >>> I've just upgraded my PHP installation to 5.3.0.

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-06 Thread Jeff Weinberger
On Jul 6, 2009, at 7:47 PM, Paul M Foster wrote: On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form "PHP Deprecated:

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-06 Thread Paul M Foster
On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: > Hi: > > I am hoping someone can help me figure this out > > I've just upgraded my PHP installation to 5.3.0. Now I am receiving > thousands of log messages of the form "PHP Deprecated: ...". > > I know I have a number of script

[PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-06 Thread Jeff Weinberger
Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form "PHP Deprecated: ...". I know I have a number of scripts that use now-deprecated functions, etc. and I now know what those are,

Re: [PHP] Log files

2008-07-03 Thread Per Jessen
Mark Bomgardner wrote: > way or is there? There are pros and cons to both methods, but I am > concerned about opening and closing a text file some many times that > it may cause and issue. The file may be opened and closed 1,000 or > more times a day. 1000 times? Nothing to worry about. Even i

Re: [PHP] Log files

2008-07-02 Thread Chris
Mark Bomgardner wrote: > I am writing an application in which I want to create log files. I am > weighing the difference between using text files and using a database to > house the data. It appears to me that there is really no advantage either > way or is there? There are pros and cons to both

Re: [PHP] Log files

2008-07-02 Thread Børge Holen
On Wednesday 02 July 2008 22:36:24 Mark Bomgardner wrote: > I am writing an application in which I want to create log files. I am > weighing the difference between using text files and using a database to > house the data. It appears to me that there is really no advantage either > way or is ther

[PHP] Log files

2008-07-02 Thread Mark Bomgardner
I am writing an application in which I want to create log files. I am weighing the difference between using text files and using a database to house the data. It appears to me that there is really no advantage either way or is there? There are pros and cons to both methods, but I am concerned ab

Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Chris
John Comerford wrote: Hi Folks, Could someone recommend a good library for error logging. What I am looking for is something that handles: 1) Error Log written to a DB (mysql) 2) Logging of PHP errors 3) Logging of MySQL errors 4) Logging of Custom errors/events 5) A log viewer would be nice

Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Nicholas Yim
Hello John Comerford, log4php,you can find it on apache.org Best regards, === At 2007-03-19, 08:22:13 you wrote: === >Hi Folks, > >Could someone recommend a good library for error logging. What I am >looking for is something that handles: > >1) Error Log written to a DB (mysql) >2)

[PHP] Log Lib Recommendation

2007-03-18 Thread John Comerford
Hi Folks, Could someone recommend a good library for error logging. What I am looking for is something that handles: 1) Error Log written to a DB (mysql) 2) Logging of PHP errors 3) Logging of MySQL errors 4) Logging of Custom errors/events 5) A log viewer would be nice but not really essenti

[PHP] Log out button

2005-03-16 Thread William Stokes
Hello, Again this might be more of a HTML quetion. If so sorry about that. Anyway I was just trying to make a log out button to a page. It should end a session or/and close browser window. (Closing browser ends the session as well I think?) All variable values are deleted when browser is closed

Re: [PHP] Log-in script help

2005-01-26 Thread Joe Harman
Tom, That's a great tip! Joe On Wed, 26 Jan 2005 10:03:31 +, Tom <[EMAIL PROTECTED]> wrote: > Joe Harman wrote: > > >Hey Andrew... > > > >IN MY OPINION... forget the cookies... only use php sessions... but > >like I said IMO you can never rely on the end user having them > >cookies ena

Re: [PHP] Log-in script help

2005-01-26 Thread Tom
Joe Harman wrote: Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state pr

Re: [PHP] Log-in script help

2005-01-25 Thread Devraj Mukherjee
Some quick answers for you are, no it does not have to be a database that holds the authentication information. For one of my projects its just a global array that holds the information. You also don't have to use sessions to do anything. Cookies are fine as you have been told before. Every sc

Re: [PHP] Log-in script help

2005-01-25 Thread AceZero2790
These ideas are great and all, but I'm a real PHP newb so I have some questions. It was that I should "look for the user in the database that stores the access info" Could I just use an array for that? Or does it have to be MySQL or something. $_Session['user_id']= (who) - Does that just add t

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
Joe Harman on Tuesday, January 25, 2005 4:23 PM said: > IN MY OPINION... forget the cookies... only use php sessions... but > like I said IMO you can never rely on the end user having them > cookies enabled... same with things like javascript... Well, I don't th

Re: [PHP] Log-in script help

2005-01-25 Thread Joe Harman
Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state pros and cons to th

Re: [PHP] Log-in script help

2005-01-25 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > Hey, >I need a particular type log in script. I'm not sure how to do it > or > where I could find a tutorial that would help me, so I'll describe what I > need > and then maybe someone could tell me what kind of script I need (sessions > or > whatever) and where I

Re: [PHP] Log-in script help

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote: > Hey, >I need a particular type log in script. I'm not sure how to do it or > where I could find a tutorial that would help me, so I'll describe what I > need > and then maybe someone could tell me what kind of script I need (session

Re: [PHP] Log-in script help

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 06:58, Chris W. Parker wrote: > The basic idea for restricting access goes like this: > > A value is set in a cookie on the clients machine if the user > successfully authenticates. The website will not allow access to the > page(s) unless this value is found. No what

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, January 25, 2005 2:46 PM said: > I need a pretty basic log in script. Something that people log in > to, and the page and all linked/related pages cannot be accessed > unless the person has logged in. So what do I need for this? > Cookie

RE: [PHP] Log-in script help

2005-01-25 Thread Jay Blanchard
[snip] I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get the script/learn how to ma

[PHP] Log-in script help

2005-01-25 Thread AceZero2790
Hey, I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get the script/learn how to mak

Re: [PHP] PHP log 2 Apache log

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 21:35:00 +0100, David Zejda <[EMAIL PROTECTED]> wrote: > Hi! > Is there any way to order the PHP (mod_php) to log everything to > ErrorLog defined by Apache in VirtualHost section? In php.ini I see only > the possibility to specify the concrete global logfile or syslog, but a >

[PHP] PHP log 2 Apache log

2004-11-29 Thread David Zejda
Hi! Is there any way to order the PHP (mod_php) to log everything to ErrorLog defined by Apache in VirtualHost section? In php.ini I see only the possibility to specify the concrete global logfile or syslog, but a such setup doesn't fit to virtual host scenario... Thanks for your advice and exc

RE: [PHP] Log parsing

2004-08-14 Thread Watty
I'll try that in another way; feel free to give me your hacks for it: $maxdiff ) { print $diftime ."\n"; $missed = $diftime / $diff; $unavail += $missed; $total += $missed; if ( $unavailog ) { } else { $downti

RE: [PHP] Log parsing

2004-08-14 Thread Watty
atty > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Log parsing > > Watty wrote: > > > I would like to do some thorough availability reports, so I started by > > writing the result of the bash script to a log file. I want to parse the > > log file to give me availab

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
John Holmes wrote: Watty wrote: >> We know because the IP check run every 5 minutes by >> cron, and if it has no run within 5:01 minutes then >> the computer is off, or the script isn't working. >> But we should assume that the computer is off is there >> is not a record for that 5 minute slot. Alt

RE: [PHP] Log parsing

2004-08-14 Thread Watty
into the log when the computer shuts down. Watty > -Original Message- > From: John Holmes [mailto:[EMAIL PROTECTED] > Sent: 15 August 2004 01:52 > To: Watty > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Log parsing > > Watty wrote: > > > I would like to do

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
Watty wrote: I would like to do some thorough availability reports, so I started by writing the result of the bash script to a log file. I want to parse the log file to give me availability reports. The log file is in the form: 08/14/04 09:10:01 [TAB] S - when the IP che

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
Watty wrote: I have a dynamic IP address, I used everydns.net as a DNS server. I have a bash script that runs with cron that checks the current IP of the machine with the DNS record so that if my IP changes; it can run the update program. I would like to do some thorough availability reports, so

[PHP] Log parsing

2004-08-14 Thread Watty
I have a dynamic IP address, I used everydns.net as a DNS server. I have a bash script that runs with cron that checks the current IP of the machine with the DNS record so that if my IP changes; it can run the update program. I would like to do some thorough availability reports, so I started by

Re: [PHP] Log transaction for audit

2004-08-05 Thread John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > On Friday 06 August 2004 01:47, John W. Holmes wrote: > > > Sounds like you just need to write a wrapper for mysql_query() that logs > > what's going on. > > > > function my_mysql_query($query) > > { > > log_query($query); > > return mysql_query($que

Re: [PHP] Log transaction for audit

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 01:47, John W. Holmes wrote: > Sounds like you just need to write a wrapper for mysql_query() that logs > what's going on. > > function my_mysql_query($query) > { > log_query($query); > return mysql_query($query); > } > > and use my_mysql_query() everywhere instead

Re: [PHP] Log transaction for audit

2004-08-05 Thread John W. Holmes
From: "CHAN YICK WAI" <[EMAIL PROTECTED]> > I'm writing an application that requires log every transactions users done, > e.g. update which record, delete which record, something like that. > > I guess one way is whenever I issue a mysql_query(), I also insert this > query in whole into another ta

[PHP] Log transaction for audit

2004-08-05 Thread CHAN YICK WAI
Hi, I'm writing an application that requires log every transactions users done, e.g. update which record, delete which record, something like that. I guess one way is whenever I issue a mysql_query(), I also insert this query in whole into another table together with the user name, so I can log a

[PHP] PHP log parser. Newbie help.

2004-08-04 Thread Gwadj
I have just succesfully installed PHP and need one script @ work. No idea how to do that and I have to have it about in two weeks. :) So please help! Anyways I want to parse some words from log file and then output the line wich contains this words. Simple script I think. Log file format: Mon Aug

Re: [PHP] log.

2004-07-23 Thread Matt M.
> I am learning php. > I need to log all actions on my page. (like ip, browser, time, pages etc). > question is: how can i identify a user and when he is on my page(s) to log > all his actions. Along with the other stuff posted, take a look at http://phpsniff.sourceforge.net/ -- PHP General Ma

Re: [PHP] log.

2004-07-23 Thread Ulitin S.S.
"John W. Holmes" <[EMAIL PROTECTED]> ???/ ? ?: news:[EMAIL PROTECTED] > Ulitin S.S. wrote: > > I am learning php. > > I need to log all actions on my page. (like ip, browser, time, pages etc). > > question is: how can i identify a user and when he is on my page(s) to

Re: [PHP] log.

2004-07-23 Thread John W. Holmes
Ulitin S.S. wrote: I am learning php. I need to log all actions on my page. (like ip, browser, time, pages etc). question is: how can i identify a user and when he is on my page(s) to log all his actions. Your web server already does all of this, why duplicate it? Just get a log analyzer. -- ---

[PHP] log.

2004-07-23 Thread Ulitin S.S.
I am learning php. I need to log all actions on my page. (like ip, browser, time, pages etc). question is: how can i identify a user and when he is on my page(s) to log all his actions. p.s. sorry for my english. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Log all GET AND POST?

2004-07-15 Thread Marek Kilimajer
Robert Sossomon wrote: I was wondering if anyone knew of a way to log all GET and POST information being passed to a log file? Thanks, Robert $get = serialize($_GET); $post = serialize($_POST); and store the variables somewhere, eg. database -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Log all GET AND POST?

2004-07-15 Thread raditha dissanayake
Robert Sossomon wrote: I was wondering if anyone knew of a way to log all GET and POST information being passed to a log file? The GET stuff is already in your apache log file. The POST stuf you probably don't want to log because it can be rather huge if you are dealing with things like file u

Re: [PHP] Log all GET AND POST?

2004-07-15 Thread James E Hicks III
On Thursday 15 July 2004 09:58 am, Robert Sossomon wrote: > I was wondering if anyone knew of a way to log all GET and POST > information being passed to a log file? > > Thanks, > Robert $DEBUG_DATA = $_SERVER['PHP_SELF']."\n"; while (list ($key, $val) = each ($_REQUEST)) { if (is_array($_

RE: [PHP] Log all GET AND POST?

2004-07-15 Thread Jay Blanchard
[snip] I was wondering if anyone knew of a way to log all GET and POST information being passed to a log file? [/snip] Yes. Create a log file. Pass all GET and POST information to it. Over and over. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Log all GET AND POST?

2004-07-15 Thread Robert Sossomon
I was wondering if anyone knew of a way to log all GET and POST information being passed to a log file? Thanks, Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Log file details required !! Help

2003-03-17 Thread Marek Kilimajer
Monil Chheda wrote: Am I MISSING SOMETHING ? $flag = "false"; if ($fp = fopen("web.log","r")) { while (!feof($fp)) { $line = fgets($fp,1024); Here you check if there is an end of string $line, sure there is, there are no infinite strings if (ereg("\$",$line))

[PHP] Log file details required !! Help

2003-03-16 Thread Monil Chheda
Hi, I need to get some details from a LOG file as to which keywords are used... I have attached the LOG file. I heed the details of the following:- 1. Ip Address 2. Date 3. The page that was requested 4. KeyWords used by the Search Engine [ Google / Yahoo seperated ] (ordered BY DATE) in a tabu

RE: [PHP] Log In

2003-03-05 Thread John W. Holmes
>> Is there a handy function in PHP that I can use to retrieve the users >> Windows Log in? We are creating an application that will allow users to >> add comments to a mysql database, and we would like to be able to track >> who is putting the comments into the table, preferably with their window

Re: [PHP] Log In

2003-03-05 Thread Hugh Danaher
); $rows=mysql_num_rows($result); if ($rows==0) header("location: index.htm"); kicks them out if ($rows==1) { your page code goes here } } ?> - Original Message ----- From: "Van Andel, Robbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP] Log In

2003-03-05 Thread Leif K-Brooks
No. Van Andel, Robbert wrote: Is there a handy function in PHP that I can use to retrieve the users Windows Log in? We are creating an application that will allow users to add comments to a mysql database, and we would like to be able to track who is putting the comments into the table, preferab

[PHP] Log In

2003-03-05 Thread Van Andel, Robbert
Is there a handy function in PHP that I can use to retrieve the users Windows Log in? We are creating an application that will allow users to add comments to a mysql database, and we would like to be able to track who is putting the comments into the table, preferably with their windows log in.

[PHP] Log files.

2002-06-21 Thread James E. Hicks III
I was having some problems with my error logs. I just figured out what the problem was! Thought everybody might benefit from it's solution so here it goes. The problem was that the php error log was only showing errors created by my command line scripts that were being executed by cron. The solut

Re: [PHP] log analysis

2002-05-10 Thread Josh Edwards
Thanks for replying Miguel I'm new to php and wonder how I would check if the first field is an IP address. Do I open the file fget it and then use a regular expression to check. Also if I want to break up the first line of my array what delimiter do I look at as the fields in the log are sep

Re: [PHP] log analysis

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Josh Edwards wrote: > I'm working on using php to analyse an access log on an apache server. > > If a user inputs a file path I want to be able to use PHP to determine if > it's a log file. Is there a function that will reject if it's not a binary > file. If it's a binary fi

[PHP] log analysis

2002-05-10 Thread Josh Edwards
Hi there, I'm working on using php to analyse an access log on an apache server. If a user inputs a file path I want to be able to use PHP to determine if it's a log file. Is there a function that will reject if it's not a binary file. If it's a binary file how would I then compare it to whats

Re: [PHP] Log file analysis

2001-08-30 Thread Tim
You can use the Apache CustomLog directive to send each virtual host's traffic to it's own logfile. http://httpd.apache.org/docs-2.0/logs.html#accesslog - Tim http://www.phptemplates.org On Thu, 2001-08-30 at 09:59, Mark Lo wrote: > Hi, > > Is there any software or program exists that

[PHP] Log file analysis

2001-08-30 Thread Mark Lo
Hi, Is there any software or program exists that can show the site statistics for each virtual domain when individual client access statistics page from their browser. (Assume virtual domain is used, and all of the domain's log file is in one large file).I am using php 4 + Redhat Linux

[PHP] Log off

2001-08-10 Thread AJDIN BRANDIC
Hi I am using HTTP authorisation to allow users to log in to vew specific pages. What can I use for log off?. I tried using header ("HTTP/1.0 401 Unauthorised"); header ("Location: http://www.mysite.com/index.php3";); OR $PHP_AUTH_USER=0; but it didn't work. -- PHP General Mailing List (ht

[PHP] log out solution?

2001-07-29 Thread Jack
Yes indeed, but not a good one. Beside, it appears to be the only solution though. Someone told me to do this to solve the logout solution: You do this for the login bit: * if (!isset($PHP_AUTH_USER) || $unauthorized) $realm = "myrealm_".time(); Header("WWW-Authenticate: Basic

Re: [PHP] log out method

2001-06-21 Thread Delbono
Hello, I tried to use BCC in may mail()  but it doesn't work.     Server is Win2k     Also CC has problems ...   If I send to:   To:  [EMAIL PROTECTED]   CC:  [EMAIL PROTECTED]     Then if I download my mails, I can see:   CC:  [EMAIL PROTECTED]   but the CC is not delivered (also on valid ema

[PHP] log out method

2001-06-21 Thread Jacky
I know this may be asked a lot previously, so please bear with me here. I use PHP_AUTH_USER for my login method, no login page or anything, only the pop up box to login. I did not use any kind of cookies or session to store login detail as well. How can I make the logout that will get rid off

[PHP] log analysis scripts

2001-05-03 Thread Paul Newby
I'm looking for a full-featured PHP script for log file analysis. Can anyone recommend one? Thanks in advance, Paul N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat

[PHP] log out from secure server

2001-01-16 Thread [EMAIL PROTECTED]
Hi people, How do I do the log out function out of the site?(the site is on secure server) Is that okay to just use the redirect function? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"