Example of C++ code using libcurl to POST 1392 FAZIA parameters & values to an SQLite database through an apache webserver.
To build the C++:
$ cmake
$ make
Set up the webserver:
Make links to the files in php/ so that they are visible from your webserver e.g.
http://localhost/add_entry.php
Run the example:
-
Enter the following in your browser URL bar:
This will set up the database & table (the first time), or delete and remake the table (after that)
-
In source/build directory:
$ ./send_data http://localhost/add_entry.php parlist.txt
-
Enter the following in your browser URL bar:
This will display the contents of the table.