Dear PHP gurus,
I have PHP&XML file. The well-formed XML file should have the [FONT=courier new]<?xml ... ?>[/FONT] declaration as the first data. But when I use sessions, I have to call session_register() before any non-PHP data, so even before the xml declaration.
How to solve this problem?
I can't use the classic hack [FONT=courier new]echo '<?xml ... ?>'[/FONT] there. I generate the PHP files through XSLT on the server side, so they must be well-formed XML still before parsing by PHP engine.