');
$tail = urlencode('');
$text = $head;
foreach($fields as $key=>$value)
$text.=''.urlencode($key).''.urlencode($value).'';
$text .= $tail;
$contents = file_get_contents($url.'?xml='.$text);
return $contents;
}
$url = 'http://...../cgi-bin/index.cgi';
$fields = array(
'dok'=>'raktar_lista',
'token'=>'TOKEN-hely',
'lang'=>'HU',
);
print esystem_xml_communication($url,$fields);
?>