On 8/5/07, Bruce Steinback <[EMAIL PROTECTED]> wrote:
> 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');

Uhm, why do you have a $ before xml_set_element_handler?

>  $xml_set_character_data_handler($xml_parser, 'charData');
>  $xml_parse($xml_parser, $resp, true);
>  $xml_parser_free($xml_parser);

And also before above functions?
>
> 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
>

let me (us) know if you fixed it.

Tijnema


-- 
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to