');
$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'=>'sysportal',
'token'=>'TOKEN-hely',
'lang'=>'HU',
);
print esystem_xml_communication($url,$fields);
?>