Update api.php

Changes Get input, and Load functions around so that the ini_set errors affects functions.php