Hi,
To get the page from othersite just put the url with the querystring of the page u wanna "pull" into ur site into the file() function.
I am giving an example of how to use the concept :
$url = "http://www.phpbuilder.com";
//file function will return an array of the entire "HTML" code returned by the url u specified, the reason been, the web server will return the "HTML" source after this function will call, this request will be handled just as another browser request by the web server, so no need of fsockopen()
$arr_url = file($url, "r");
//check if file() function returned an array as intended or not
if(!$arr_url):
echo "Unable to open file to READ !".$url;
exit();
endif;
//join the arra returned by the file function with "" (empty string) as a seperator to generate the exact "HTML" source
$str_source = join("", $arr_url);
So now $str_source is the entire content of the file u wanted to use.
Hoping that this would have came handy in ur problem.