School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store | FORUMS
Class / Forums / homeroom ![]() |
php diary 1/21/03: Apache access_log files |
(#86 2003-01-21 05:00:46) Post Reply |
|
TDavid
|
Please leave your comments about my diary entry on using PHP to analyze Apache access logs in this thread.
The diary entry is located here: http://www.php-scripts.com/php_diary/012103.php3
|
(#95 2003-04-21 15:42:31) Post Reply |
|
JMattTurn
|
In your example you post the following code to write the parsed log files to a *.txt file:
[php] $fhandle = fopen("/path/to/import_file.txt", "w") { foreach($new_format as $data) { fputs($fhandle, "$datan"); } fclose($fhandle); } [/php] When I tried using this it I received error messages concerning the placement of your brackets. I was wondering if for clarity, your might repost the entire script in the sequence as it has worked for you. Thanks much. |
(#99 2003-04-25 15:18:42) Post Reply |
|
TDavid
|
Just remove the errorenous brace :)
|
(#268 2004-11-09 19:28:47) Post Reply |
|
digiguru
|
I really like this script and it came up high in the search engines.
I was wondering how I can automate the submission of the data into a database instantly from running. I have it all setup and created - but I don't know how to call the LOAD sql statment from PHP. I have already changed it so it adds the data & linebreak HTML to a new string object, "$txtDatabase", will it know how to decipher it without being translated into a .txt and back again? Cheers in advance! digi |
|
View Previous Thread Print This Page |
School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store
Advertising
| Link To Us | Privacy
Copyright 2000-2002 Script School Productions / KMR
Enterprises
No part of this website may be reproduced, copied and/or distributed
in any medium
without express written permission