pb Posted March 10, 2007 Share Posted March 10, 2007 Hi, I would like to pipe my Apache log(s) to a PHP script(s) and then to mySQL. I can successfully pipe the log to a file. Mostly it appended itself to the end of the php script - so some success. Since in the script below the log is NOT appended to the end of the same script file, may I presume that the script does not know what to do with the input? How do I get the script to execute and accept the log entries piped from Apache? /Library/Webserver/Documents/ is my Apache web site. Apache httpd.conf: CustomLog "/Library/Webserver/Documents/apachelog.php&logline=" combined apachelog.php (How do I get this script to take Customlog input and execute?): <?php $logline = ???????? ( $_ENV ??? ) ( process to mySql ) ?> fyi I use $_GET frequently and have tried various system variables such as $ENV. OS 10.4.8, Apache 1.3, PHP5.2.1 (Entropy ), mySQL5.0.27 I'd appreciate any hints. Thanks in advance, pb Link to comment https://forums.phpfreaks.com/topic/42137-apache-httpd-log-pipe-to-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.