ImportCumulusFile: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
1.1a added date delimiter
m (version 1.1 -- added delimter option)
m (1.1a added date delimiter)
{{AddOnBanner|name=ImportCumulusFile|type=PHP|author=David A Jamieson|contact='DAJ' via the forum|updated=4 Feb 2010|version=1.11a}}
 
This is a PHP script designed to run on your webserver and import Cumulus log files into a MySQL database on your server.
:servername, username, password, database and security key
:these are documented in the file at the top.
:There is a sixth and seventh entry which may require editing. Look at the text file you are importing. How is each field separated/delimited? InHow is the UKdate thisdelimited? isIn athe comma soUK there is nothing else needs changed. If for example your delimiter is a semi-colon and a dash then change the linelines $delimiterfield_delimiter and $date_delimiter accordingly
*save the file as ImportCumulusFile.<b>php</b> or whatever name you prefer and upload it to your webserver.
 
=Version Control=
 
*1.11a Added the facility to identify thedate delimiter used on the import file
*1.1 Added the facility to identify the delimiter used on the import file
*1.0 First Release
 
 
1,120

edits

Navigation menu