1. Install PHP 5.5+ which has a built-in server
sudo apt-get install php5
2. Create a directory for php files. For example public_html/index.php
3. Run
php -S localhost:8000
sudo apt-get install php5
public_html/index.php
php -S localhost:8000
http://localhost:8000/index.php
In 2013, I created a project to provide a general-purpose tree structure in Java.
One challenge at that time (mostly because I was not an expertise at that time, neither am I now) is the return type of Tree
methods. For example, the return type of getChild(int index)
that should return the child at the specified index.