Has anyone here ever used the Twig::print method to print to a file?
I'm having trouble getting it to work.
Here is my code ($twig has already been parsed)
$ofile = '/var/www/html/tech/xml/report.xml';
$twig->set_pretty_print('indented');
$twig->print(ofile);
I get a malformed header from script. Bad header=<?xml version="1.0"
standalone: error
I know that the file permissions are set correctly because I can do a regular
print to the file. ie...
open( ofile, ">/var...");
print ofile "hello there";
close( ofile );
Any help would be appreciated
Thanks
Jeremy
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]