I've seen several sites which offer free site search scripts that you can add to your site so users can search it using Google's results, which are accessed through their API. I don't want to use any of these free third party scipts, as I prefer to make all my own and none of them are flexible enough, I couldn't encorporate them to fit in with my site's template effectively enough for a start.
So how do I go about making a php or perl script to display google results on my site? I already have a license key and the api files, I just don't know where to start.