Hi,
Im making a mysql db that will eventually use search fields from websites to make multiple searches in one go.
So far, I have coded to read in the homepage of the website, which i will later use for searching the input field.
I have used:
$fp = fopen($homepage, 'r');
if($fp){
while(!feof($fp)) {
$body = $body . fread($fp, 1024);
}
}
To read in the HTML code from the homepage address given. This works fine for some websites, however some say that javascript is disabled and doesnt load the actual homepage.
Ive noticed however that the redirect script is within the <script> tags, and have managed to grab that. Though when using the address I get an error:
The address grabbed from the code:
http://www.argos.co.uk/static/home.htm
The error message:
Warning: fopen(http://www.argos.co.uk/static/home.htm) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found.
For some reason it doenst like fopen, any ideas?
Cheers