Next in thread →
Next in month →
Re: [xml-dev] XML Problem
"Sebastian A." <> writes:
> function charcterPro($parser, $data)
> {
> global $TAG;
>
> switch ($currentTag)
> {
> case "TAG1":
> $TAG = $data;
> break;
>
> default:
> break;
> }
> }
Where should $currentTag come from? It's not passed to charcterPro and
it's not global.
So I guess it's never "TAG1" etc. Try turning on all warnings for
developing, dereferencing uninitialized variables will then be
reported by PHP.
hth
Henrik
Next in thread →
Next in month →