1,157
edits
No edit summary |
|||
{{AddOnBanner|name=ImportCumulusFile|type=PHP|author=David A Jamieson
This is a PHP script designed to run on your webserver and import Cumulus log files into a MySQL database on your server.
*a Cumulus Log already uploaded
=Installation=
*Download the PHP script ...
*Save the file and edit it using a text editor -- there are five entries to be edited
:servername, username, password, database and security key
*type=xxxx
::this must be either the phrase ''dayfile
*file=xxxxx
An example URL...
=The result=
Using the above script, in combination with the [[Toolbox]] you could set an automated FTP rule to upload the dayfile.txt from Cumulus each day at 00:15 and then run an HTTP remote command (this script) to import it into the SQL database
=
*1.1c Small modification to code to handle date delimiter with a dot
*1.0 First Release▼
▲*1.1c Small modification to code to handle date delimiter with a dot [[http://wiki.sandsoft.com/files/ImportCumulusFile_v1-1c.txt Download]]
▲*1.1b Added a variable to consider decimal separator
▲*1.1a Added date delimiter
▲*1.1 Added the facility to identify the delimiter used on the import file
▲*1.0 First Release
[[Category:WebTools]]
|