A simple php-based API script