= PHP = The 825 Gen2 includes PHP https://en.wikipedia.org/wiki/PHP which combined with the Apache Web Server allows for powerful web features. From a terminal **php -v** will show the PHP version. {{{ card825gen2:~$ php -v PHP 8.1.10 (cli) (built: Aug 30 2022 16:09:36) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.10, Copyright (c) Zend Technologies }}} Accessing MySQL database from php: Make sure MySQL is configured first. Refer to the [wiki:Docs/825gen2/Dev/Database/MySQL MySQL] page MySQL (MariaDB) Create a simple test php file to read from the database {{{ cd /usr/share/apache2/default-site/htdocs nano readmysql.php }}} {{{#!php
| Title | Description |
|---|---|
| ' . $title . ' | ' . $description . ' |
| Truck ID | Tare |
|---|---|
| ' . $truckid . ' | ' . $tare . ' |