#Install PHP and etc using xampp on ubuntu
download and install xampp
12sudo chmod +x xampp-linux-x64-*-installer.runsudo ./xampp-linux-x64-*-installer.runXMAPP will be installed to opt/lampp
Helloworld of php
create index.php file and copy to apache httpd root, xampp sets default web root to /opt/lampp/htdocs.
you can change to any path if you want by edit /opt/lampp/etc/httpd.conf file.
Find DocumentRoot and the corresponding Directory123<?phpecho '<p>Hello world</p>';?>Then, restart apache, visit it with Chrome(localhost) to see the result
How to get variables of html input control
$tireqty // short style $_POST[‘tireqty’] // medium style $HTTP_POST_VARS[‘tireqty’] // long style