Create basicfunctions.php

Initial upload of the script