PHP search

Hi, im wanting to use Google as a backend for a search engine. I basically want to use Google search but create my own search page and results pages.

Please visit:

This is basically what im trying to achive.
From what i can see they use a combination of php to grab it, and display using javascript.

Could someone help me to build one similar. thanks