Walk through modern PHP language. Covers :
- CLI command line php
- HTTP and webpages with PHP
- MySqli library extensions.
sudo apt-get install apache2
sudo apt-get install mysql-server mysql-client
sudo apt-get install libapache2-mod-auth-mysql php5-mysql
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo apt-get install mc lynx vim wget curl less
php -m #show compiled modules
php --info #show php info
php -v #version of php
cd ~/public_html
php -S localhost:8000
lynx http://localhost:8000
Execute a php by intepreter. Beware tha CLI contenxt is different then web context.
php -f myscript.php
Bash oneliner for testing purposes
echo '<?php require 'appconfig.php'; ?>' - | php