Nemonoman and Oni:
In reference to the remark that include() doesn't do what is expected (display output of google.com on page), it actually should. I quote the manual:
When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end.
Remote file may be processed at the remote server (depending on the file extension and the fact if the remote server runs PHP or not) but it still has to produce a valid PHP script because it will be processed at the local server. If the file from the remote server should be processed there and outputted only, readfile() is much better function to use.
// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';
So including the URL to google should work. If not properly, try adding the fopen() wrapper and including then.
file_get_contents() should also work for getting the page requested. The difference is that file_get_contents() reads the file into a string, rather than outputting it where the statement is called.
If I understand correctly, you want to include the information from google.com, but while the page is loading, show something? Is that right?
If that's what you want, then I'd say you need to use file_get_contents with ob_start() and ob_flush().... Then you can display what you need as the file is read into a string.
I'm pretty sure you want Output Control. Ajax may even be able to help you here too....