foreach ($queryList as $key => $value) {
$keyItem = $queryItem;
foreach ($keyItem as $key_i => $value_i) {
}
}
$query = $xpath->query('//img');
$img = $query->item(0);
echo $img->getAttribute('src');
$query = $xpath->query('//img/@src');
if ( !empty( $_SERVER['HTTP_CLIENT_IP'] ) )
{
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
elseif( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) )
//to check ip passed from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
}