DaveHope
10-04-2003, 07:40 PM
Hello all,
I'm currently getting information from my apache logs to show information on hits and other information. using the following:
strstr($strLogFile[$i],"Oct") ? $strOctHits++ : $strOctHits = $strOctHits;
That works really well, however now for some other information I'll need to see if two values are present in $strLogFile[$i] I've looked through the manual on RegExp and found little useful information and since I've never used RegExp before I was wondering if someone had a good example of looking for two bits of data on one line? thanks!
I'm currently getting information from my apache logs to show information on hits and other information. using the following:
strstr($strLogFile[$i],"Oct") ? $strOctHits++ : $strOctHits = $strOctHits;
That works really well, however now for some other information I'll need to see if two values are present in $strLogFile[$i] I've looked through the manual on RegExp and found little useful information and since I've never used RegExp before I was wondering if someone had a good example of looking for two bits of data on one line? thanks!