<?php
include("sample_utils.php"); // need to include this to use mk
$si = new MKswf_inspector("sample01.swf"); // read swf structure
$xmlStr = $si->fetch_xml();
$xmlOut =
fopen(SERVER_MKTMP .
"sample01.xml",
"w");
// save on file
$str = trace_var("please look into tmp for file sample01.xml, it would contain", "", false, false, true);
$str .= trace_var
("<pre>" .
htmlspecialchars($xmlStr) .
"</pre>",
"",
true,
true,
true);
?>
it will result in a xml file stored in tmp directory containing several info (header, tag header and, in some cases, hex data dump).