I am trying to grab the results of a query sent to an ASP page and parse through it like you would an .html page. Is there any way to grab the results of the ASP page as a file?
Here is something similar to what I am trying to do:
<?php
$qstr = substr($QUERY_STRING, strpos($QUERY_STRING, "?"), strlen($QUERY_STRING));
$url = "http://www.realtor.com/FindHome/HomeListings.asp?".$qstr;
$page = fopen($url , "r") or die("Could not open page");
$line = fgets($page, 255) or die("Could not get line");
fclose($page);
?>
above, I am sending a query from my page to the php script and then trying to grab the query results for parsing from the asp page.
any help would be greatly appreciated.
Pete