Originally posted by fux23
I have never used EREGI or FOPEN functions....
🙁
theres always a first time...
http://www.php.net/manual/en/function.fopen.php
//this could not work... it depends how yr hoster is configured...
$fd = fopen ("www.somedomain.com/prices.html", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
http://www.php.net/manual/en/function.fsockopen.php
$fp = fsockopen ("www.somedomain.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET /prices.html HTTP/1.0\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
handle yr text with
http://www.php.net/manual/en/ref.regex.php
(http://www.php.net/manual/en/function.ereg.php and http://www.php.net/manual/en/function.eregi.php)
and
http://www.php.net/manual/en/ref.strings.php
(http://www.php.net/manual/en/function.stristr.php and http://www.php.net/manual/en/function.strstr.php)