Update basicfunctions.php

Basic functions used to assist in the operation of PHP scripts