Okay, I'm probably really stupid, but I can't figure this out.  I'm getting the 
error:

Fatal error: Function name must be a string in .../pages-stage/loginresp.php on 
line 205

(which is the xml_set_element_handler() call)

with this code:

  function startElement($parser, $name, $attrs) {
    global $value;
    $value = "";
  }

  function endElement($parser, $name) {
    global $value, $bypass, $status;
    ....
  }

  function charData($parser, $data) {
    global $value;
    $value = $data;
  }

  if (!isset($_GET["consentResp"])) {
    ...
  } else {
    ...
  }

  // Fallthru do getPresence
  // Okay, user is auth'd, now do getPresence to get members of BL
  $resp = doGetPresence($devId, $authToken, $baseUrl);
  // sigh - strip HTTP metadata
  $resp = strstr($resp, "<?");

  // Do XML parse - sets status, handles BL data if present
  $xml_parser = xml_parser_create();
  $xml_set_element_handler($xml_parser, 'startElement', 'endElement');
  $xml_set_character_data_handler($xml_parser, 'charData');
  $xml_parse($xml_parser, $resp, true);
  $xml_parser_free($xml_parser);

Any ideas? I've tried the line with single quotes, double quotes and no quotes, 
and various other odd attempts to figure it out.  I'm totally baffled.

    Many Thanks (in advance),
    Bruce Steinback




       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

Reply via email to