Create locfunc.php