ok, here is the issue, I want to download a webpage. Here is the code I am using and it works, sorta. Basicaly, this gives a location: url
I want to know how to grab that url and then pase the info to look for specific info between
<title> :: View topic - GRAB THIS PART OF THE TEXT </title>
Thanks in advance
<?php
DEFINE('USERNAME', "user");
DEFINE('PASSWORD', "pass");
$number = "126284";
$fp = fsockopen ('somewhere.com', 80);
if ($fp)
{
$data = 'username='. USERNAME .'&password='. PASSWORD .'&redirect=view.php%3Ft%3D'.$number.'%26start%3D0&login=Log+in';
fputs ($fp,
"POST /login.php HTTP/1.1\r\n"
. "Content-Type: application/x-www-form-urlencoded\r\n"
. "Content-Length: " . strlen($data) . "\r\n"
. "Expect: 100-continue\r\n"
. "Connection: Close\r\n"
. "Host: [url]www.somewhere.com\r\n\r\n[/url]"
. $data . "\r\n");
while (!feof($fp))
{
echo fgets ($fp, 2048);
}
fclose ($fp);
}
?>