Re: Subject: execute before fopen?
| From: | Neil Smith | Date: | Sat, 15 Feb 2003 15:19:50 +0000 |
| Subject: | Re: Subject: execute before fopen? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18548@lists.php.net to get a copy of this message | ||
I'm not sure I understand your problem. You want to use an external exe to *read* the XML then load into PHP to print it out ? When you say print do you mean literally print, on paper, or print as in display ?
Why not parse the file within PHP using either Expat parser and XSL, or use XPath DOM functions to walk the tree and format it that way. It would be more appropriate imho. You can always load the transformed XML into a browser and print / style it using CSS.
Cheers,
Neil Smith.
At 12:10 15/02/2003 +0000, you wrote:
---------------------------------------------------------------------- Message-ID: <20030215051610.22705.qmail@pb1.pair.com> To: php-windows@lists.php.net Reply-To: "Håkan" <hw2k@barrysworld.com> From: "Håkan" <hw2k@barrysworld.com> Date: Sat, 15 Feb 2003 06:14:28 +0100 Subject: execute before fopen? Ok, I came up with a small problem, I have a function that opens and reads information from xml files, and I have a php file that uses a system(file.exe -xml) to print the xml code, is there any way to make the php file execute it and then read the information somehow? I'm kind of dumbstruck at the moment :) Håkan