[Home] [By Thread] [By Date] [Recent Entries]


"Sebastian A." <sebi@x...> 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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member