05-22-2009, 08:54 AM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Here's a little comparison. It grabs the remote file and echoes the value from currentPage="value".
PHP Code:
$html = file_get_contents('http://www.url.com', FALSE, NULL, 0, 140);
if (preg_match('/\bcurrentPage="(.+?)"/i', $html, $matches))
{
echo $matches[1];
}
else
{
echo 'No currentPage found.';
}
|
|
|
|