Sun Oct 26, 2008 6:57 pm
<?php
function pi_handler ($p, $target, $data) {
print ($target);
print ($data);
}
$xml = "<?exec ls -l /var?><rootElement/>";
$p = xml_parser_create ();
xml_set_processing_instruction_handler ($p, 'pi_handler');
if (!xml_parse ($p, $xml, true))
die (sprintf ("Parse error in <code>%s</code> (%s)",
htmlspecialchars ($xml),
xml_error_string (xml_get_error_code ($p))));
else
print ("XML processing complete.\n");
xml_parser_free ($p);
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.