Re: Parsing PHP variables in XML document
| From: | Bogdan Ribic | Date: | Mon, 27 Feb 2006 00:42:23 +0000 |
| Subject: | Re: Parsing PHP variables in XML document | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231119@lists.php.net to get a copy of this message | ||
Ivan,
Did you try entering the code with debugger, or at least printing out what output buffer was holding, ie $content var in my example? Can you post exact code? Also, is short_tags turned on or off in php.ini? If it is on, php will get confused on first line of your xml file, it will think that <?xml is a php openning tag.
In your original code you were calling the parser that was expecting $foo3 to be set, but you were setting the $foo3 *after* parsing, are you sure you're not making a mistake like that again?
Ivan Nedialkov wrote:
Well isn't there a way instead of using only variables, to use sth like <?php echo $foo; ?> I tried it but it doesnt work The parser returns blank! -- Open source PHP code generator for DB operations http://sourceforge.net/projects/bfrcg/