PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?PHP
function startElement($parser, $name, $attrs)
{
if($name == "ROW")
{
echo "Hay";
}
}
function endElement($parser, $name)
{
}
function characterData($parser, $name)
{
}
function paxml($data)
{
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
echo "Hay";
exit;
xml_parse($xml_parser, $data);
xml_parser_free($xml_parser);
}
?>
I can't see any error, any suggestion how i can see errors
<?PHP
function startElement($parser, $name, $attrs)
{
if($name == "ROW")
{
echo "Hay";
}
}
function endElement($parser, $name)
{
}
function characterData($parser, $name)
{
}
function paxml($data)
{
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
echo "Hay";
exit;
xml_parse($xml_parser, $data);
xml_parser_free($xml_parser);
}
?>
I can't see any error, any suggestion how i can see errors
display_errors should be on. error_reporting (E_ALL)